|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.faunos.util.dim.line.RangeComparator
public class RangeComparator
A simple Range
comparator based on the range's low value.
Range
.
Field Summary | |
---|---|
static RangeComparator |
INSTANCE
Ready-made instance. |
Constructor Summary | |
---|---|
RangeComparator()
|
Method Summary | |
---|---|
int |
compare(Range r1,
Range r2)
Compares the two given ranges by comparing their low values. |
boolean |
equals(Object obj)
Returns true if and only if the given object's class is
the same as that of this instance. |
int |
hashCode()
Returns this instance's hash code. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final RangeComparator INSTANCE
Constructor Detail |
---|
public RangeComparator()
Method Detail |
---|
public int compare(Range r1, Range r2)
compare
in interface Comparator<Range>
Range.lo()
public boolean equals(Object obj)
true
if and only if the given object's class is
the same as that of this instance.
equals
in interface Comparator<Range>
equals
in class Object
hashCode()
public int hashCode()
hashCode
in class Object
equals(Object)
,
Object.equals(Object)
,
Object.hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |