|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.spy.util.Range
A range of Comparable objects.
| Field Summary | |
static int |
EXCLUSIVE
Match type for exclusive matches. |
static int |
INCLUSIVE
Match type for inclusive matches. |
| Constructor Summary | |
Range(Comparable lowObject,
Comparable highObject)
Get an instance of Range. |
|
| Method Summary | |
int |
compareTo(Object o)
|
boolean |
contains(Comparable c)
True if the given object lies within this range. |
boolean |
equals(Object o)
True if the given object is a Range object that represents the same range. |
Comparable |
getHigh()
Get the high object. |
int |
getHighMatch()
Get the high match type. |
Comparable |
getLow()
Get the low object. |
int |
getLowMatch()
Get the low match type. |
int |
hashCode()
Get a predictable hash code. |
void |
setHighMatch(int hm)
Set the high match type. |
void |
setLowMatch(int lm)
Set the low match type. |
String |
toString()
Describe this object in Set notation. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int INCLUSIVE
public static final int EXCLUSIVE
| Constructor Detail |
public Range(Comparable lowObject,
Comparable highObject)
| Method Detail |
public int getLowMatch()
public void setLowMatch(int lm)
lm - either INCLUSIVE or EXCLUSIVEpublic int getHighMatch()
public void setHighMatch(int hm)
hm - either INCLUSIVE or EXCLUSIVEpublic Comparable getLow()
public Comparable getHigh()
public String toString()
public boolean contains(Comparable c)
public int compareTo(Object o)
compareTo in interface ComparableComparablepublic boolean equals(Object o)
public int hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||