All Packages Class Hierarchy This Package Previous Next Index
Interface ccl.util.Comparable
- public interface Comparable
Comparable is an interface for any class possessing an element
comparison method.
- Version:
- 0.93
For an introduction to this package see Overview .
- Author:
- Doug Lea
-
compare(Object, Object)
- Compare two Objects with respect to ordering.
compare
public abstract int compare(Object oFirst_,
Object oSecond_)
- Compare two Objects with respect to ordering. Typical
implementations first cast their arguments to particular
types in order to perform comparison
- Parameters:
- fst - first argument
- snd - second argument
- Returns:
- a negative number if fst is less than snd; a
positive number if fst is greater than snd; else 0
All Packages Class Hierarchy This Package Previous Next Index