Package dev.cel.runtime
Class ConcatenatedListView<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- dev.cel.runtime.ConcatenatedListView<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>,java.util.Collection<E>,java.util.List<E>
@Internal public final class ConcatenatedListView<E> extends java.util.AbstractList<E>A custom list view implementation that allows O(1) concatenation of two lists. Its primary purpose is to facilitate efficient accumulation of lists for later materialization. (ex: comprehensions that dispatch `add_list` to concat N lists together).This does not support any of the standard list operations from
List.CEL Library Internals. Do Not Use.
-
-
Constructor Summary
Constructors Constructor Description ConcatenatedListView(java.util.Collection<? extends E> collection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAll(java.util.Collection<? extends E> collection)Eget(int index)java.util.Iterator<E>iterator()intsize()-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
-