public class CompareLists
extends java.lang.Object
Constructor and Description |
---|
CompareLists() |
Modifier and Type | Method and Description |
---|---|
static boolean |
compare(java.util.List l1,
java.util.List l2)
Compares two lists of elements, using the value returned of the toString() method
of each element.
|
static boolean |
compare(java.util.List l1,
java.util.List l2,
java.util.Comparator comp)
Compares two lists of elements, using the value returned of the toString() method
of each element.
|
static boolean |
compareIgnoringCaseSensitive(java.util.List l1,
java.util.List l2)
Compares two lists of elements, using the value returned of the toString() method
of each element.
|
static boolean |
compareIgnoringCaseSensitive(java.util.List l1,
java.util.List l2,
java.util.Comparator comp)
Compares two lists of elements, using the value returned of the toString() method
of each element.
|
public static boolean compare(java.util.List l1, java.util.List l2)
Comparable
interface. l1
- First list of items. @see java.util.Listl2
- Second list of items. @see java.util.Listpublic static boolean compareIgnoringCaseSensitive(java.util.List l1, java.util.List l2)
Comparable
interface. l1
- First list of items. @see java.util.Listl2
- Second list of items. @see java.util.Listpublic static boolean compare(java.util.List l1, java.util.List l2, java.util.Comparator comp)
Comparable
interface. l1
- First list of items. @see java.util.Listl2
- Second list of items. @see java.util.Listcomp
- A class which implements the compare method of the Comparator interface .public static boolean compareIgnoringCaseSensitive(java.util.List l1, java.util.List l2, java.util.Comparator comp)
Comparable
interface. l1
- First list of items. @see java.util.Listl2
- Second list of items. @see java.util.Listcomp
- A class which implements the compare method of the Comparator interface .