Package | Description |
---|---|
org.djutils.immutablecollections |
Contains a set of immutable collection interfaces and wrapper implementations.
|
Modifier and Type | Class and 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.
|
Modifier and Type | Method and Description |
---|---|
static <T> ImmutableList<T> |
ImmutableCollections.emptyImmutableList()
Return an immutable empty list.
|
ImmutableList<E> |
ImmutableVector.subList(int fromIndex,
int toIndex)
Returns a safe, immutable copy of the portion of this immutable list between the specified fromIndex,
inclusive, and toIndex, exclusive.
|
ImmutableList<E> |
ImmutableList.subList(int fromIndex,
int toIndex)
Returns a safe, immutable copy of the portion of this immutable list between the specified fromIndex,
inclusive, and toIndex, exclusive.
|
ImmutableList<E> |
ImmutableArrayList.subList(int fromIndex,
int toIndex)
Returns a safe, immutable copy of the portion of this immutable list between the specified fromIndex,
inclusive, and toIndex, exclusive.
|
Modifier and Type | Method and 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(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.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.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(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.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.
|
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.
|
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(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.
|
Copyright © 2018–2019 Delft University of Technology. All rights reserved.