|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.util.Range<T>
public class Range<T extends Comparable<T>>
A range of Comparable objects.
| Nested Class Summary | |
|---|---|
static class |
Range.MatchType
|
| Constructor Summary | |
|---|---|
Range(T lowObject,
T highObject)
Get an instance of Range. |
|
| Method Summary | |
|---|---|
int |
compareTo(Range<T> r)
|
boolean |
contains(T 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<T> |
getHigh()
Get the high object. |
Range.MatchType |
getHighMatch()
Get the high match type. |
Comparable<T> |
getLow()
Get the low object. |
Range.MatchType |
getLowMatch()
Get the low match type. |
int |
hashCode()
Get a predictable hash code. |
void |
setHighMatch(Range.MatchType hm)
Set the high match type. |
void |
setLowMatch(Range.MatchType 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 |
| Constructor Detail |
|---|
public Range(T lowObject,
T highObject)
| Method Detail |
|---|
public Range.MatchType getLowMatch()
public void setLowMatch(Range.MatchType lm)
lm - either INCLUSIVE or EXCLUSIVEpublic Range.MatchType getHighMatch()
public void setHighMatch(Range.MatchType hm)
hm - either INCLUSIVE or EXCLUSIVEpublic Comparable<T> getLow()
public Comparable<T> getHigh()
public String toString()
toString in class Objectpublic boolean contains(T c)
public int compareTo(Range<T> r)
compareTo in interface Comparable<Range<T extends Comparable<T>>>Comparablepublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||