|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.downloader.Interval
The half-open interval [low, high) inclusive on the low end.
Field Summary | |
int |
high
|
int |
low
INVARIANT: low<=high |
Constructor Summary | |
Interval(int singleton)
|
|
Interval(int low,
int high)
|
Method Summary | |
boolean |
adjacent(Interval other)
True if this and other are adjacent, i.e. |
int |
compareTo(java.lang.Object o)
Compares this to another interval by the 'low' element of the interval. |
boolean |
equals(java.lang.Object o)
|
boolean |
overlaps(Interval other)
True if this and other overlap. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int low
public int high
Constructor Detail |
public Interval(int low, int high)
public Interval(int singleton)
Method Detail |
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean adjacent(Interval other)
public boolean overlaps(Interval other)
public java.lang.String toString()
public boolean equals(java.lang.Object o)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |