Package org.parboiled.common
Class ImmutableList<T>
java.lang.Object
java.util.AbstractCollection<E>
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>
A simple, immutable List implementation wrapping an array.
-
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, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toStringMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArray
-
Constructor Details
-
ImmutableList
public ImmutableList()
-
-
Method Details
-
append
-
copyOf
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-