infomat.vectorspace.ivector
Class IVector.TValueComparator

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

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

Private class for ordering the Ts in value order.


Field Summary
private  java.util.HashMap<T,java.lang.Float> objectValueMap
           
 
Constructor Summary
IVector.TValueComparator(java.util.HashMap<T,java.lang.Float> objectValueMap)
           
 
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
 

Field Detail

objectValueMap

private java.util.HashMap<T extends IVectorIndex,java.lang.Float> objectValueMap
Constructor Detail

IVector.TValueComparator

public IVector.TValueComparator(java.util.HashMap<T,java.lang.Float> objectValueMap)
Method Detail

compare

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