All Packages Class Hierarchy This Package Previous Next Index
Interface Supporting.Comparable
- public 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(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(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