|
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.AllEqualComparator<T>
public class AllEqualComparator<T>
Comparator that does not acutally compare but handles all elements as being equal.
| Field Summary | |
|---|---|
static AllEqualComparator<java.lang.Object> |
OBJECT_INSTANCE
Instance of this comparator. |
| Constructor Summary | |
|---|---|
AllEqualComparator()
|
|
| Method Summary | |
|---|---|
int |
compare(T t1,
T t2)
Returns 0. |
| 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 |
|---|
public static final AllEqualComparator<java.lang.Object> OBJECT_INSTANCE
| Constructor Detail |
|---|
public AllEqualComparator()
| Method Detail |
|---|
public int compare(T t1,
T t2)
compare in interface java.util.Comparator<T>
|
TUM CCSM Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||