Package org.apache.calcite.runtime
Interface FlatLists.ComparableList<T>
- Type Parameters:
T
- element type
- All Superinterfaces:
Collection<T>
,Comparable<List>
,Iterable<T>
,List<T>
- All Known Implementing Classes:
FlatLists.Flat1List
,FlatLists.Flat2List
,FlatLists.Flat3List
,FlatLists.Flat4List
,FlatLists.Flat5List
,FlatLists.Flat6List
- Enclosing class:
FlatLists
List that is also comparable.
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
.
-
Method Summary
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface java.util.List
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, toArray