Uses of Interface
org.djutils.immutablecollections.ImmutableList
Package
Description
Contains a set of immutable collection interfaces and wrapper implementations.
-
Uses of ImmutableList in org.djutils.immutablecollections
Modifier and TypeClassDescriptionclass
An abstract base class for an immutable wrapper for a List.class
An immutable wrapper for an ArrayList.class
An immutable wrapper for a Vector.Modifier and TypeMethodDescriptionstatic <T> ImmutableList<T>
ImmutableCollections.emptyImmutableList()
Return an immutable empty list.static <E> ImmutableList<E>
ImmutableList.of()
Return an empty ImmutableList, backed by a ArrayList.static <E> ImmutableList<E>
ImmutableList.of
(E v1) Return an ImmutableList with 1 entry, backed by a ArrayList.static <E> ImmutableList<E>
ImmutableList.of
(E v1, E v2) Return an ImmutableList with 2 entries, backed by a ArrayList.static <E> ImmutableList<E>
ImmutableList.of
(E v1, E v2, E v3) Return an ImmutableList with 3 entries, backed by a ArrayList.static <E> ImmutableList<E>
ImmutableList.of
(E v1, E v2, E v3, E v4) Return an ImmutableList with 4 entries, backed by a ArrayList.static <E> ImmutableList<E>
ImmutableList.of
(E v1, E v2, E v3, E v4, E v5, E... vn) Return an ImmutableList with 5 or more entries, backed by a ArrayList.final ImmutableList<E>
ImmutableArrayList.subList
(int fromIndex, int toIndex) ImmutableList.subList
(int fromIndex, int toIndex) Returns a safe, immutable copy of the portion of this immutable list between the specifiedfromIndex
, inclusive, andtoIndex
, exclusive.final ImmutableList<E>
ImmutableVector.subList
(int fromIndex, int toIndex) Modifier and TypeMethodDescriptionstatic <T> int
ImmutableCollections.binarySearch
(ImmutableList<? extends Comparable<? super T>> il, T key) Search the immutable list for the specified object using the binary search algorithm.static <T> int
ImmutableCollections.binarySearch
(ImmutableList<? extends T> il, T key, Comparator<? super T> comparator) Search the immutable list for the specified object using the binary search algorithm.static int
ImmutableCollections.indexOfSubList
(List<?> source, ImmutableList<?> target) Returns the starting position of the first occurrence of the specified target list within the specified source list, or -1 if there is no such occurrence.static int
ImmutableCollections.indexOfSubList
(ImmutableList<?> source, List<?> target) Returns the starting position of the first occurrence of the specified target list within the specified source list, or -1 if there is no such occurrence.static int
ImmutableCollections.indexOfSubList
(ImmutableList<?> source, ImmutableList<?> target) Returns the starting position of the first occurrence of the specified target list within the specified source list, or -1 if there is no such occurrence.static int
ImmutableCollections.lastIndexOfSubList
(List<?> source, ImmutableList<?> target) Returns the starting position of the last occurrence of the specified target list within the specified source list, or -1 if there is no such occurrence.static int
ImmutableCollections.lastIndexOfSubList
(ImmutableList<?> source, List<?> target) Returns the starting position of the last occurrence of the specified target list within the specified source list, or -1 if there is no such occurrence.static int
ImmutableCollections.lastIndexOfSubList
(ImmutableList<?> source, ImmutableList<?> target) Returns the starting position of the last occurrence of the specified target list within the specified source list, or -1 if there is no such occurrence.