com.algosome.common.util
Class Sort

java.lang.Object
  extended by com.algosome.common.util.Sort
All Implemented Interfaces:
java.util.Comparator

public class Sort
extends java.lang.Object
implements java.util.Comparator

A class which sorts any object that implements the Compare interface.


Constructor Summary
Sort()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares to objects which implements the Compare interface.
 
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

Sort

public Sort()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compares to objects which implements the Compare interface.

Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - Object 1
o2 - Object 2.
Returns:
an integer value from invoking o1.compareTo(o2)