All Packages Class Hierarchy This Package Previous Next Index
Class sdsu.compare.LinearOrderComparer
java.lang.Object
|
+----sdsu.compare.Comparer
|
+----sdsu.compare.LinearOrderComparer
- public abstract class LinearOrderComparer
- extends Comparer
A abstract class for comparing Linear ordered objects (Numeric).
Subclass needs to implement equal, lessThan, greaterThan.
-
LinearOrderComparer()
-
-
compare(Object, Object)
- Returns an integer that is less than, equal to,
or greater than zero.
LinearOrderComparer
public LinearOrderComparer()
compare
public final int compare(Object leftOperand,
Object rightOperand) throws ClassCastException
- Returns an integer that is less than, equal to,
or greater than zero. The integer's value depends on whether
leftOperand is less than, equal to, or greater than rightOperand.
- Throws: ClassCastException
- If operand objects are not proper type.
ClassCastException is a RuntimeException, so compiler does not force you
to catch this exception.
All Packages Class Hierarchy This Package Previous Next Index