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.


Constructor Index

 o IntegerComparator()

Method Index

 o isComparable(Object)
Tests if an Object can be compared by this comparator.
 o isEqualTo(Object, Object)
Tests if one Integer is equal to another.
 o isGreaterThan(Object, Object)
Tests if one Integer is greater than another.
 o isGreaterThanOrEqualTo(Object, Object)
Tests if one Integer is greater than or equal to another.
 o isLessThan(Object, Object)
Tests if one Integer is less than another.
 o isLessThanOrEqualTo(Object, Object)
Tests if one Integer is less than or equal to another.

Constructors

 o IntegerComparator
 public IntegerComparator()

Methods

 o 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
 o 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
 o 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
 o 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
 o 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
 o 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