I am searching for a class that implements one of the following
java.util.Comparator<int[]>
java.util.Comparator<List<T>>
java.util.Comparator<Collection<T>>
Why is there no such class in the Java Standard Library / Apache Common / Google Guava ?
Guava's
Ordering
class provides lexicographical ordering ofIterable
s that uses a baseOrdering
to compare each pair of elements.