topology
public class TreeSetComparator<E extends java.lang.Comparable<E>> extends java.lang.Object implements java.util.Comparator<java.util.TreeSet<E>>
Constructor and Description |
---|
TreeSetComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.util.TreeSet<E> treeSet1,
java.util.TreeSet<E> treeSet2)
Returns the compare-value of two TreeSets with respect to lexicographical
ordering: a positive value if the second tree set is before the first
tree set, a negative value if the first tree set is before the second
tree set, and zero if both are the same.
|
public int compare(java.util.TreeSet<E> treeSet1, java.util.TreeSet<E> treeSet2)