Package org.apache.calcite.runtime
Class FlatLists.AbstractFlatList<T>
java.lang.Object
org.apache.calcite.runtime.FlatLists.AbstractFlatList<T>
- Type Parameters:
T- element type
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>,RandomAccess
- Direct Known Subclasses:
FlatLists.Flat1List,FlatLists.Flat2List,FlatLists.Flat3List,FlatLists.Flat4List,FlatLists.Flat5List,FlatLists.Flat6List,ImmutableIntList
- Enclosing class:
FlatLists
Base class for flat lists.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends T> c) booleanaddAll(Collection<? extends T> c) Returns a list that consists of a this list's elements plus a given element.voidclear()booleanbooleancontainsAll(Collection<?> c) booleanisEmpty()iterator()listIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) subList(int fromIndex, int toIndex) toList()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, get, hashCode, indexOf, lastIndexOf, replaceAll, size, sort, spliterator, toArray, toArray
-
Constructor Details
-
AbstractFlatList
public AbstractFlatList()
-
-
Method Details
-
toList
-
append
Returns a list that consists of a this list's elements plus a given element. -
iterator
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<E>- Specified by:
isEmptyin interfaceList<E>
-
add
- Specified by:
addin interfaceCollection<E>- Specified by:
addin interfaceList<E>
-
addAll
- Specified by:
addAllin interfaceCollection<E>- Specified by:
addAllin interfaceList<E>
-
addAll
-
removeAll
- Specified by:
removeAllin interfaceCollection<E>- Specified by:
removeAllin interfaceList<E>
-
retainAll
- Specified by:
retainAllin interfaceCollection<E>- Specified by:
retainAllin interfaceList<E>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<E>- Specified by:
clearin interfaceList<E>
-
set
-
add
-
remove
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
subList
-
contains
- Specified by:
containsin interfaceCollection<E>- Specified by:
containsin interfaceList<E>
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceList<E>
-
remove
- Specified by:
removein interfaceCollection<E>- Specified by:
removein interfaceList<E>
-