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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends T> c) boolean
addAll
(Collection<? extends T> c) Returns a list that consists of a this list's elements plus a given element.void
clear()
boolean
boolean
containsAll
(Collection<?> c) boolean
isEmpty()
iterator()
listIterator
(int index) remove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(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, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:
listIterator
in interfaceList<E>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<E>
- Specified by:
isEmpty
in interfaceList<E>
-
add
- Specified by:
add
in interfaceCollection<E>
- Specified by:
add
in interfaceList<E>
-
addAll
- Specified by:
addAll
in interfaceCollection<E>
- Specified by:
addAll
in interfaceList<E>
-
addAll
-
removeAll
- Specified by:
removeAll
in interfaceCollection<E>
- Specified by:
removeAll
in interfaceList<E>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<E>
- Specified by:
retainAll
in interfaceList<E>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<E>
- Specified by:
clear
in interfaceList<E>
-
set
-
add
-
remove
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
-
subList
-
contains
- Specified by:
contains
in interfaceCollection<E>
- Specified by:
contains
in interfaceList<E>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in interfaceList<E>
-
remove
- Specified by:
remove
in interfaceCollection<E>
- Specified by:
remove
in interfaceList<E>
-