ccl.util
Interface Comparable
- public interface Comparable
Comparable is an interface for any class possessing an element
comparison method.
Method Summary |
int |
compare(java.lang.Object oFirst_,
java.lang.Object oSecond_)
Compare two Objects with respect to ordering. |
compare
public int compare(java.lang.Object oFirst_,
java.lang.Object oSecond_)
- Compare two Objects with respect to ordering. Typical
implementations first cast their arguments to particular
types in order to perform comparison
- Parameters:
oFirst_
- first argumentoSecond_
- second argument
- Returns:
- a negative number if fst is less than snd; a
positive number if fst is greater than snd; else 0