Package org.apache.calcite.runtime
Interface FlatLists.ComparableList<T>
-
- Type Parameters:
T
- element type
- All Superinterfaces:
java.util.Collection<T>
,java.lang.Comparable<java.util.List>
,java.lang.Iterable<T>
,java.util.List<T>
- All Known Implementing Classes:
FlatLists.ComparableEmptyList
,FlatLists.ComparableListImpl
,FlatLists.Flat1List
,FlatLists.Flat2List
,FlatLists.Flat3List
,FlatLists.Flat4List
,FlatLists.Flat5List
,FlatLists.Flat6List
- Enclosing class:
- FlatLists
public static interface FlatLists.ComparableList<T> extends java.util.List<T>, java.lang.Comparable<java.util.List>
List that is also comparable.You can create an instance whose type parameter
T
does not extendComparable
, but you will get aClassCastException
at runtime when you callComparable.compareTo(Object)
if the elements of the list do not implementComparable
.
-
-
Method Summary
-
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
-
-