Package org.springframework.ldap.support
Class ListComparator
- java.lang.Object
-
- org.springframework.ldap.support.ListComparator
-
- All Implemented Interfaces:
java.io.Serializable,java.util.Comparator
public class ListComparator extends java.lang.Object implements java.util.Comparator, java.io.SerializableComparator for comparing lists of Comparable objects.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(java.lang.Object o1, java.lang.Object o2)Compare two lists of Comparable objects.
-
-
-
Method Detail
-
compare
public int compare(java.lang.Object o1, java.lang.Object o2)Compare two lists of Comparable objects.- Specified by:
comparein interfacejava.util.Comparator- Parameters:
o1- the first object to be compared.o2- the second object to be compared.- Throws:
java.lang.ClassCastException- if any of the lists contains an object that is not Comparable.
-
-