All Packages Class Hierarchy This Package Previous Next Index
Interface DataStructures.Comparable
- public interface Comparable
Protocol for Comparable objects.
In Java 1.2, you can remove this file.
compareTo(Comparable)
- Compare this object with rhs.
compareTo
public abstract int compareTo(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.
All Packages Class Hierarchy This Package Previous Next Index