public static interface FlatLists.ComparableList<T> extends List<T>, Comparable<List>
You can create an instance whose type
parameter T does not extend Comparable, but you will get a
ClassCastException at runtime when you call
Comparable.compareTo(Object) if the elements of the list do not implement
Comparable.
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streamcompareToCopyright © 2024 The Apache Software Foundation. All rights reserved.