|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.tum.cs.commons.collections.InvertingComparator<E>
public class InvertingComparator<E>
This works on another compartor and inverts it.
Constructor Summary | |
---|---|
InvertingComparator(java.util.Comparator<? super E> comparator)
Create a new InvertingComparator . |
Method Summary | |
---|---|
int |
compare(E object1,
E object2)
Compares to objects with the orginal comparator and inverts the result |
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 |
---|
public InvertingComparator(java.util.Comparator<? super E> comparator)
InvertingComparator
.
comparator
- the comparator to invert.Method Detail |
---|
public int compare(E object1, E object2)
compare
in interface java.util.Comparator<E>
|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |