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