All Packages Class Hierarchy This Package Previous Next Index
Class jdsl.core.ref.IntegerComparator
java.lang.Object
|
+----jdsl.core.ref.IntegerComparator
- public class IntegerComparator
- extends Object
- implements Comparator
A comparator that compares integers.
- Author:
- Lubomir Bourdev, Ryan Shaun Baker, Mike Boilen (mgb)
-
IntegerComparator()
-
-
isComparable(Object)
- Tests if an Object can be compared by this comparator.
-
isEqualTo(Object, Object)
- Tests if one
Integer is equal to another.
-
isGreaterThan(Object, Object)
- Tests if one
Integer is greater than another.
-
isGreaterThanOrEqualTo(Object, Object)
- Tests if one
Integer is greater than or equal to another.
-
isLessThan(Object, Object)
- Tests if one
Integer is less than another.
-
isLessThanOrEqualTo(Object, Object)
- Tests if one
Integer is less than or equal to another.
IntegerComparator
public IntegerComparator()
isGreaterThan
public boolean isGreaterThan(Object x1,
Object x2) throws InvalidElementException
- Tests if one
Integer is greater than another.
- Returns:
- true if
x1 is greater than x2
- Throws: InvalidElementException
- if either parameter is not an
Integer
isLessThan
public boolean isLessThan(Object x1,
Object x2) throws InvalidElementException
- Tests if one
Integer is less than another.
- Returns:
- true if
x1 is less than x2
- Throws: InvalidElementException
- if either parameter is not an
Integer
isEqualTo
public boolean isEqualTo(Object x1,
Object x2) throws InvalidElementException
- Tests if one
Integer is equal to another.
- Returns:
- true if
x1 is equal to x2
- Throws: InvalidElementException
- if either parameter is not an
Integer
isGreaterThanOrEqualTo
public boolean isGreaterThanOrEqualTo(Object x1,
Object x2) throws InvalidElementException
- Tests if one
Integer is greater than or equal to another.
- Returns:
- true if
x1 is greater than or equal to
x2 @exception InvalidElementException if either parameter
is not an Integer
isLessThanOrEqualTo
public boolean isLessThanOrEqualTo(Object x1,
Object x2) throws InvalidElementException
- Tests if one
Integer is less than or equal to another.
- Returns:
- true if
x1 is less than or equal to
x2 @exception InvalidElementException if either parameter
is not an Integer
isComparable
public boolean isComparable(Object x)
- Tests if an Object can be compared by this comparator.
All Packages Class Hierarchy This Package Previous Next Index