com.cyc.tool.subl.util
Class ComparatorGenericKey<T>
java.lang.Object
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>
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
ComparatorGenericKey
public ComparatorGenericKey(BinaryFunction pred,
UnaryFunction key)
- Creates a new instance of SortComparatorIdentityKey.
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)