TUM CCSM Commons

edu.tum.cs.commons.collections
Class AllEqualComparator<T>

java.lang.Object
  extended by edu.tum.cs.commons.collections.AllEqualComparator<T>
All Implemented Interfaces:
java.util.Comparator<T>

public class AllEqualComparator<T>
extends java.lang.Object
implements java.util.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

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

OBJECT_INSTANCE

public static final AllEqualComparator<java.lang.Object> OBJECT_INSTANCE
Instance of this comparator.

Constructor Detail

AllEqualComparator

public AllEqualComparator()
Method Detail

compare

public int compare(T t1,
                   T t2)
Returns 0.

Specified by:
compare in interface java.util.Comparator<T>

TUM CCSM Commons

TUM CCSM Commons - 2.7