All Packages Class Hierarchy This Package Previous Next Index
Interface util.Comparer
- public interface Comparer
A function to compare objects. This way we can sort lists
with respect to different notions of "greater than".
-
isGreaterThan(Object, Object)
- Compare two objects.
isGreaterThan
public abstract boolean isGreaterThan(Object o1,
Object o2) throws CompareException
- Compare two objects. Return true if and only if the first object
is greater than the second one.
- Parameters:
- o1 - the first object
- o2 - the second object
- Returns:
- the result of the comparison.
All Packages Class Hierarchy This Package Previous Next Index