edu.tum.cs.commons.collections
Class AllEqualComparator<T>
java.lang.Object
edu.tum.cs.commons.collections.AllEqualComparator<T>
- All Implemented Interfaces:
- Comparator<T>
public class AllEqualComparator<T>
- extends Object
- implements Comparator<T>
Comparator that does not acutally compare but handles all elements
as being equal.
- Version:
- $Rev: 26283 $
- Author:
- deissenb, $Author: juergens $
- Rating:
- GREEN Hash: ECD3DED6552211233D6AD0FEE58B9E4B
|
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 |
OBJECT_INSTANCE
public static final AllEqualComparator<Object> OBJECT_INSTANCE
- Instance of this comparator.
AllEqualComparator
public AllEqualComparator()
compare
public int compare(T t1,
T t2)
- Returns 0.
- Specified by:
compare in interface Comparator<T>
TUM CCSM Commons - 2.7