com.cyc.tool.subl.util
Class ComparatorGenericKey<T>

java.lang.Object
  extended by com.cyc.tool.subl.util.ComparatorGenericKey<T>
All Implemented Interfaces:
java.util.Comparator<T>

public final class ComparatorGenericKey<T>
extends java.lang.Object
implements java.util.Comparator<T>


Constructor Summary
ComparatorGenericKey(BinaryFunction pred, UnaryFunction key)
          Creates a new instance of SortComparatorIdentityKey.
 
Method Summary
 int compare(T o1, T o2)
           
 ComparatorGenericKey init(BinaryFunction pred, UnaryFunction key)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ComparatorGenericKey

public ComparatorGenericKey(BinaryFunction pred,
                            UnaryFunction key)
Creates a new instance of SortComparatorIdentityKey.

Method Detail

compare

public int compare(T o1,
                   T o2)
Specified by:
compare in interface java.util.Comparator<T>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

init

public ComparatorGenericKey init(BinaryFunction pred,
                                 UnaryFunction key)