|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jdsl.core.ref.AbstractComparator | +--jdsl.core.ref.BigIntegerComparator
Compares java.math.BigInteger objects.
Constructor Summary | |
BigIntegerComparator()
|
Method Summary | |
int |
compare(java.lang.Object x1,
java.lang.Object x2)
A C-style comparison function that returns a negative value if the first object is less than the second, a positive value if the second object is less, and 0 if the two objects are equal. |
boolean |
isComparable(java.lang.Object o)
Allows a container (or any client) to find out whether an object is a member of the ordered set over which this comparator is defined. |
Methods inherited from class jdsl.core.ref.AbstractComparator |
isEqualTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jdsl.core.api.Comparator |
isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo |
Methods inherited from interface jdsl.core.api.EqualityComparator |
isEqualTo |
Constructor Detail |
public BigIntegerComparator()
Method Detail |
public int compare(java.lang.Object x1, java.lang.Object x2) throws java.lang.ClassCastException
Comparator
compare
in interface Comparator
compare
in class AbstractComparator
jdsl.core.api.Comparator
a
- First Object to compareb
- Second Object to comparepublic boolean isComparable(java.lang.Object o)
EqualityComparator
isComparable
in interface EqualityComparator
jdsl.core.api.EqualityComparator
o
- Any java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |