utilMDE
Class ArraysMDE.ComparableArrayComparatorLengthFirst<T extends Comparable<T>>
Object
ArraysMDE.ComparableArrayComparatorLengthFirst<T>
- All Implemented Interfaces:
- Comparator<T[]>
- Enclosing class:
- ArraysMDE
public static final class ArraysMDE.ComparableArrayComparatorLengthFirst<T extends Comparable<T>>
- extends Object
- implements Comparator<T[]>
Note: this comparator imposes orderings that are inconsistent with equals.
That is, it may return 0 if the arrays are not equal (but do contain
identical objects).
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArraysMDE.ComparableArrayComparatorLengthFirst
public ArraysMDE.ComparableArrayComparatorLengthFirst()
compare
public int compare(T[] a1,
T[] a2)
- Specified by:
compare in interface Comparator<T extends Comparable<T>[]>