infomat.vectorspace
Class IObjectLexicalComparator

java.lang.Object
  extended by infomat.vectorspace.IObjectLexicalComparator
All Implemented Interfaces:
java.util.Comparator

 class IObjectLexicalComparator
extends java.lang.Object
implements java.util.Comparator

A private class that is used to order the IObjects in lexical order.


Constructor Summary
IObjectLexicalComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares two IObject:s lexically and returns 1, 0 or -1
 
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

IObjectLexicalComparator

IObjectLexicalComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compares two IObject:s lexically and returns 1, 0 or -1

Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - a IObject
o2 - a IObject
Returns:
int