infomat.vectorspace.ivector
Class IVector.IDComparator

java.lang.Object
  extended by infomat.vectorspace.ivector.IVector.IDComparator
All Implemented Interfaces:
java.util.Comparator<T>
Enclosing class:
IVector<T extends IVectorIndex>

private class IVector.IDComparator
extends java.lang.Object
implements java.util.Comparator<T>

Private class for ordering the Ts in order of their ID. Uses the IVectorIndex.getString() - method.


Constructor Summary
private IVector.IDComparator()
           
 
Method Summary
 int compare(T t1, T t2)
           
 
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

IVector.IDComparator

private IVector.IDComparator()
Method Detail

compare

public int compare(T t1,
                   T t2)
Specified by:
compare in interface java.util.Comparator<T extends IVectorIndex>