topology
public class ListComparator<E extends java.lang.Comparable<E>> extends java.lang.Object implements java.util.Comparator<java.util.List<E>>
Constructor and Description |
---|
ListComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.util.List<E> list1,
java.util.List<E> list2)
Returns the compare-value of two lists with respect to
lexicographical ordering: a positive number if the second list is
before the first list, a negative number if the first list is before
the second list, and zero if both lists are the same.
|
public int compare(java.util.List<E> list1, java.util.List<E> list2)