|
SSJ V. labo. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumontreal.iro.lecuyer.util.MultiDimComparator<T>
public class MultiDimComparator<T extends MultiDimComparable<? super T>>
MultiDimComparator
This class defines a bridge between our interface MultiDimComparable and the classic java.utilComparator in Java. Precisely, this is an implementation of java.util.Comparator, which compares two MultiDimComparable objects in the dimension given in the constructor. Method compare(o1, o2) simply calls o1.compareTo(o2,i), where i is the index given in the constructor.
Constructor Summary | |
---|---|
MultiDimComparator(int i)
. |
Method Summary | |
---|---|
int |
compare(T o1,
T o2)
. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public MultiDimComparator(int i)
Method Detail |
---|
public int compare(T o1, T o2)
compare
in interface Comparator<T extends MultiDimComparable<? super T>>
|
SSJ V. labo. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |