scranton
Class AscendingInteger

java.lang.Object
  extended byscranton.AscendingInteger
All Implemented Interfaces:
java.util.Comparator

class AscendingInteger
extends java.lang.Object
implements java.util.Comparator

A comparator for ordering Integer objects in their natural order, their comparable order.


Constructor Summary
(package private) AscendingInteger()
           
 
Method Summary
 int compare(java.lang.Object Left, java.lang.Object Right)
          The comparator's compare method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

AscendingInteger

AscendingInteger()
Method Detail

compare

public int compare(java.lang.Object Left,
                   java.lang.Object Right)
The comparator's compare method

Specified by:
compare in interface java.util.Comparator
Parameters:
Left - The first object in the comparison
Right - The second object in the comparison
Returns:
returns Left - Right