Package java.lang
Class Integer
int compareTo(Integer anotherInteger)
int compareTo(Object anObject)
_INSERT_METHOD_SIGNATURE_HERE_
Description:
compareTo(Integer anotherInteger) method:
Compares two Integers numerically.
Returns the value 0 if the argument Integer is equal to this Integer; a value less than 0 if this Integer is numerically less than the Integer argument; and a value greater than 0 if this Integer is numerically greater than the Integer argument (signed comparison).
compareTo(Object anObject) method:
Compares this Integer to another Object. If the Object is a Integer, this function behaves like compareTo(Integer). Otherwise, it throws a ClassCastException (as Integers are comparable only to other Integers).
Returns the value 0 if the argument Integer is equal to this Integer; a value less than 0 if this Integer is numerically less than the Integer argument; and a value greater than 0 if this Integer is numerically greater than the Integer argument (signed comparison).