All Packages Class Hierarchy This Package Previous Next Index
Interface Supporting.Comparable
- public abstract interface Comparable
Protocol for Comparable objects.
-
compares(Comparable)
- Compare this object with rhs.
-
lessThan(Comparable)
- Compare this object with rhs.
compares
public abstract int compares(Supporting.Comparable rhs)
- Compare this object with rhs.
- Parameters:
- Rhs - the second Comparable.
- Returns:
- 0 if two objects are equal;
less than zero if this object is smaller;
greater than zero if this object is larger.
lessThan
public abstract boolean lessThan(Supporting.Comparable rhs)
- Compare this object with rhs.
- Parameters:
- Rhs - the second Comparable.
- Returns:
- true if this object is smaller;
false otherwise.
All Packages Class Hierarchy This Package Previous Next Index