All Packages Class Hierarchy This Package Previous Next Index
Interface net.strandberg.util.Sortable
- public interface Sortable
Interface Sortable is an interface for objects that can be sorted by comparing
two objects.
- Version:
- $Revision: 0.0 $
- Author:
- Mats Strandberg
-
compareTo(Object)
- Compares this sortable object to another sortable object
compareTo
public abstract int compareTo(Object other)
- Compares this sortable object to another sortable object
- Parameters:
- other - object to be compared to this object
- Returns:
- -1 if this object is less than other, 0 if objects are equal or 1 if
this object is larger than other. -1 is returned if other object cannot be
compared to this object
All Packages Class Hierarchy This Package Previous Next Index