All Packages Class Hierarchy This Package Previous Next Index
Interface structure.Comparable
- public interface Comparable
An interface that describes objects that can be compared.
For some structures, it is important that the less than method
provide a consistent result; if a is lessThan b, then b should not be
lessThan a.
-
lessThan(Comparable)
- A routine to determine one value is less than another.
lessThan
public abstract boolean lessThan(Comparable item)
- A routine to determine one value is less than another.
- Precondition:
- item is non-null
- Postcondition:
- returns true iff this object less than item
- Parameters:
- item - The value to be compared to this.
All Packages Class Hierarchy This Package Previous Next Index