Package org.parboiled.common
Class ImmutableList<T>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
org.parboiled.common.ImmutableList<T>
- Type Parameters:
T- The type of the List elements.
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>,SequencedCollection<T>
A simple, immutable List implementation wrapping an array.
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ImmutableList<T> static <T> ImmutableList<T> static <T> ImmutableList<T> of()static <T> ImmutableList<T> of(ImmutableList<T> first, T last) static <T> ImmutableList<T> of(T a) static <T> ImmutableList<T> of(T... elements) static <T> ImmutableList<T> of(T[] first, T last) static <T> ImmutableList<T> of(T first, ImmutableList<T> more) static <T> ImmutableList<T> of(T a, T b) static <T> ImmutableList<T> of(T first, T[] more) static <T> ImmutableList<T> of(T a, T b, T c) Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, size, sort, spliterator, toArray, toArray
-
Constructor Details
-
ImmutableList
public ImmutableList()
-
-
Method Details
-
append
-
copyOf
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-