|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.util.Range
public class 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(java.lang.Comparable lowObject,
java.lang.Comparable highObject)
Get an instance of Range. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
|
boolean |
contains(java.lang.Comparable c)
True if the given object lies within this range. |
boolean |
equals(java.lang.Object o)
True if the given object is a Range object that represents the same range. |
java.lang.Comparable |
getHigh()
Get the high object. |
int |
getHighMatch()
Get the high match type. |
java.lang.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. |
java.lang.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(java.lang.Comparable lowObject,
java.lang.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 java.lang.Comparable getLow()
public java.lang.Comparable getHigh()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean contains(java.lang.Comparable c)
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparableComparablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||