org.squashtest.tm.domain
Class IdentifiedComparator

java.lang.Object
  extended by org.squashtest.tm.domain.IdentifiedComparator
All Implemented Interfaces:
Comparator<Identified>

public class IdentifiedComparator
extends Object
implements Comparator<Identified>

compares Identified objects using their id.

Author:
Gregory Fouquet

Constructor Summary
IdentifiedComparator()
           
 
Method Summary
 int compare(Identified o1, Identified o2)
           
static IdentifiedComparator getInstance()
           
 
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

IdentifiedComparator

public IdentifiedComparator()
Method Detail

getInstance

public static IdentifiedComparator getInstance()

compare

public int compare(Identified o1,
                   Identified o2)
Specified by:
compare in interface Comparator<Identified>
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.