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

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

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


Constructor Summary
ComparatorIdentityKey(BinaryFunction pred)
          Creates a new instance of ComparatorIdentityKey.
 
Method Summary
 int compare(T o1, T o2)
           
 ComparatorIdentityKey init(BinaryFunction pred)
           
 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

ComparatorIdentityKey

public ComparatorIdentityKey(BinaryFunction pred)
Creates a new instance of ComparatorIdentityKey.

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 ComparatorIdentityKey init(BinaryFunction pred)