|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.classloading.spi.version.VersionRange
public class VersionRange
VersionRange.
Field Summary | |
---|---|
static VersionRange |
ALL_VERSIONS
All versions |
Constructor Summary | |
---|---|
VersionRange(Object low)
Create a new VersionRange with just a low inclusive check |
|
VersionRange(Object low,
boolean lowInclusive,
Object high,
boolean highInclusive)
Create a new VersionRange. |
|
VersionRange(Object low,
Object high)
Create a new VersionRange with low inclusive and high non-inclusive |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Object |
getHigh()
Get the high. |
Object |
getLow()
Get the low. |
int |
hashCode()
|
boolean |
isConsistent(VersionRange other)
Check whether two version ranges are consistent |
boolean |
isHighInclusive()
Get the highInclusive. |
boolean |
isInRange(Object version)
Test whether a version is in range |
boolean |
isLowInclusive()
Get the lowInclusive. |
String |
toString()
|
protected void |
validate()
Validate the range |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final VersionRange ALL_VERSIONS
Constructor Detail |
---|
public VersionRange(Object low)
low
- the low range (null for no lower bound)public VersionRange(Object low, Object high)
low
- the low range (null for no lower bound)high
- the high range (null for no higher bound)public VersionRange(Object low, boolean lowInclusive, Object high, boolean highInclusive)
low
- the low range (null for no lower bound)lowInclusive
- whether the low bound is inclusivehigh
- the high range (null for no higher bound)highInclusive
- whether the high bound is inclusive
IllegalArgumentException
- if the low or is inclusive but not in the range or the high is less than the lowMethod Detail |
---|
protected void validate()
IllegalArgumentException
- for any errorpublic Object getLow()
public boolean isLowInclusive()
public Object getHigh()
public boolean isHighInclusive()
public boolean isInRange(Object version)
version
- the version to test
IllegalArgumentException
- for a null versionpublic boolean isConsistent(VersionRange other)
other
- the other version
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |