Package | Description |
---|---|
org.djutils.immutablecollections |
Contains a set of immutable collection interfaces and wrapper implementations.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ImmutableList<E>
A List interface without the methods that can change it.
|
interface |
ImmutableNavigableSet<E>
A
ImmutableSortedSet extended with navigation methods reporting closest matches for given search targets. |
interface |
ImmutableSet<E>
A Set interface without the methods that can change it.
|
interface |
ImmutableSortedSet<E>
A SortedSet interface without the methods that can change it.
|
Modifier and Type | Class and Description |
---|---|
class |
ImmutableAbstractCollection<E>
An abstract base class for an immutable wrapper for a Set.
|
class |
ImmutableAbstractList<E>
An abstract base class for an immutable wrapper for a List.
|
class |
ImmutableAbstractSet<E>
An abstract base class for an immutable wrapper for a Set.
|
class |
ImmutableArrayList<E>
An immutable wrapper for an ArrayList.
|
class |
ImmutableHashSet<E>
An immutable wrapper for a HashSet.
|
class |
ImmutableLinkedHashSet<E>
An immutable wrapper for a HashSet.
|
class |
ImmutableTreeSet<E>
An immutable wrapper for a TreeSet.
|
class |
ImmutableVector<E>
An immutable wrapper for a Vector.
|
Modifier and Type | Field and Description |
---|---|
protected ImmutableCollection<V> |
ImmutableAbstractMap.cachedValues
the cached values.
|
Modifier and Type | Method and Description |
---|---|
ImmutableCollection<V> |
ImmutableMap.values()
Returns a
ImmutableCollection view of the values contained in this map. |
ImmutableCollection<V> |
ImmutableLinkedHashMap.values()
Returns a
ImmutableCollection view of the values contained in this map. |
ImmutableCollection<V> |
ImmutableAbstractMap.values()
Returns a
ImmutableCollection view of the values contained in this map. |
Modifier and Type | Method and Description |
---|---|
boolean |
ImmutableCollection.containsAll(ImmutableCollection<?> c)
Returns true if this immutable collection contains all of the elements in the specified immutable
collection.
|
boolean |
ImmutableAbstractSet.containsAll(ImmutableCollection<?> c)
Returns true if this immutable collection contains all of the elements in the specified immutable
collection.
|
boolean |
ImmutableAbstractList.containsAll(ImmutableCollection<?> c)
Returns true if this immutable collection contains all of the elements in the specified immutable
collection.
|
static boolean |
ImmutableCollections.disjoint(Collection<?> c1,
ImmutableCollection<?> ic2)
Determine if an immutable collection and a (non immutable) collection have no common members
|
static boolean |
ImmutableCollections.disjoint(ImmutableCollection<?> ic1,
Collection<?> c2)
Determine if an immutable collection and a (non immutable) collection have no common members
|
static boolean |
ImmutableCollections.disjoint(ImmutableCollection<?> ic1,
ImmutableCollection<?> ic2)
Determine if two immutable collections have no common members.
|
static boolean |
ImmutableCollections.disjoint(ImmutableCollection<?> ic1,
ImmutableCollection<?> ic2)
Determine if two immutable collections have no common members.
|
static int |
ImmutableCollections.frequency(ImmutableCollection<?> ic,
Object o)
Return the number of occurrences of an object in an immutable collection.
|
static <T extends Object & Comparable<? super T>> |
ImmutableCollections.max(ImmutableCollection<? extends T> ic)
Returns the maximum element of an immutable collection according to the natural ordering of its elements.
|
static <T> T |
ImmutableCollections.max(ImmutableCollection<? extends T> ic,
Comparator<? super T> comparator)
Returns the maximum element of an immutable collection according to the natural ordering of its elements.
|
static <T extends Object & Comparable<? super T>> |
ImmutableCollections.min(ImmutableCollection<? extends T> ic)
Returns the minimum element of an immutable collection according to the natural ordering of its elements.
|
static <T> T |
ImmutableCollections.min(ImmutableCollection<? extends T> ic,
Comparator<? super T> comparator)
Returns the minimum element of an immutable collection according to the natural ordering of its elements.
|
Copyright © 2018–2019 Delft University of Technology. All rights reserved.