Uses of Interface
org.djutils.immutablecollections.ImmutableList
Package | Description |
---|---|
org.djutils.immutablecollections |
Contains a set of immutable collection interfaces and wrapper implementations.
|
-
Uses of ImmutableList in org.djutils.immutablecollections
Classes in org.djutils.immutablecollections that implement ImmutableList Modifier and Type Class Description class
ImmutableAbstractList<E>
An abstract base class for an immutable wrapper for a List.class
ImmutableArrayList<E>
An immutable wrapper for an ArrayList.class
ImmutableVector<E>
An immutable wrapper for a Vector.Methods in org.djutils.immutablecollections that return ImmutableList Modifier and Type Method Description static <T> ImmutableList<T>
ImmutableCollections. emptyImmutableList()
Return an immutable empty list.ImmutableList<E>
ImmutableArrayList. subList(int fromIndex, int toIndex)
Returns a safe, immutable copy of the portion of this immutable list between the specifiedfromIndex
, inclusive, andtoIndex
, exclusive.ImmutableList<E>
ImmutableList. subList(int fromIndex, int toIndex)
Returns a safe, immutable copy of the portion of this immutable list between the specifiedfromIndex
, inclusive, andtoIndex
, exclusive.ImmutableList<E>
ImmutableVector. subList(int fromIndex, int toIndex)
Returns a safe, immutable copy of the portion of this immutable list between the specifiedfromIndex
, inclusive, andtoIndex
, exclusive.Methods in org.djutils.immutablecollections with parameters of type ImmutableList Modifier and Type Method Description static <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.