Package org.springframework.ldap.support
Class ListComparator
java.lang.Object
org.springframework.ldap.support.ListComparator
- All Implemented Interfaces:
Serializable
,Comparator
Comparator for comparing lists of Comparable objects.
- See Also:
-
Constructor Summary
-
Method Summary
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
ListComparator
public ListComparator()
-
-
Method Details
-
compare
Compare two lists of Comparable objects.- Specified by:
compare
in interfaceComparator
- Parameters:
o1
- the first object to be compared.o2
- the second object to be compared.- Throws:
ClassCastException
- if any of the lists contains an object that is not Comparable.
-