Index
All Classes and Interfaces|All Packages
A
- add(int, E) - Method in interface org.odenix.collections.PersistentList
-
Returns a new persistent list with the specified
elementinserted at the specifiedindex. - add(E) - Method in interface org.odenix.collections.PersistentCollection
-
Returns the result of adding the specified
elementto this collection. - add(E) - Method in interface org.odenix.collections.PersistentList
-
Returns a new persistent list with the specified
elementappended. - add(E) - Method in interface org.odenix.collections.PersistentSet
-
Returns the result of adding the specified
elementto this set. - addAll(int, Collection) - Method in interface org.odenix.collections.PersistentList
-
Returns the result of inserting the specified
ccollection at the specifiedindex. - addAll(E[]) - Method in interface org.odenix.collections.PersistentCollection
-
Returns the result of adding all elements of the specified
elementsarray to this collection. - addAll(E[]) - Method in interface org.odenix.collections.PersistentList
-
Returns the result of appending all elements of the specified
elementsarray to this list. - addAll(E[]) - Method in interface org.odenix.collections.PersistentSet
-
Returns the result of adding all elements of the specified
elementsarray to this set. - addAll(Iterable) - Method in interface org.odenix.collections.PersistentCollection
-
Returns the result of adding all elements of the specified
elementscollection to this collection. - addAll(Iterable) - Method in interface org.odenix.collections.PersistentList
-
Returns the result of appending all elements of the specified
elementscollection to this list. - addAll(Iterable) - Method in interface org.odenix.collections.PersistentSet
-
Returns the result of adding all elements of the specified
elementscollection to this set. - addAll(Collection) - Method in interface org.odenix.collections.PersistentCollection
-
Returns the result of adding all elements of the specified
elementscollection to this collection. - addAll(Collection) - Method in interface org.odenix.collections.PersistentList
-
Returns the result of appending all elements of the specified
elementscollection to this list. - addAll(Collection) - Method in interface org.odenix.collections.PersistentSet
-
Returns the result of adding all elements of the specified
elementscollection to this set. - addAll(Stream) - Method in interface org.odenix.collections.PersistentCollection
-
Returns the result of adding all elements of the specified
elementssequence to this collection. - addAll(Stream) - Method in interface org.odenix.collections.PersistentList
-
Returns the result of appending all elements of the specified
elementssequence to this list. - addAll(Stream) - Method in interface org.odenix.collections.PersistentSet
-
Returns the result of adding all elements of the specified
elementssequence to this set.
B
- build() - Method in interface org.odenix.collections.PersistentCollection.Builder
-
Returns a persistent collection with the same contents as this builder.
- build() - Method in interface org.odenix.collections.PersistentList.Builder
- build() - Method in interface org.odenix.collections.PersistentMap.Builder
-
Returns a persistent map with the same contents as this builder.
- build() - Method in interface org.odenix.collections.PersistentSet.Builder
- builder() - Method in interface org.odenix.collections.PersistentCollection
-
Returns a new builder with the same contents as this collection.
- builder() - Method in interface org.odenix.collections.PersistentList
- builder() - Method in interface org.odenix.collections.PersistentMap
-
Returns a new builder with the same contents as this map.
- builder() - Method in interface org.odenix.collections.PersistentSet
C
- clear() - Method in interface org.odenix.collections.PersistentCollection
-
Returns an empty persistent collection.
- clear() - Method in interface org.odenix.collections.PersistentList
-
Returns an empty persistent list.
- clear() - Method in interface org.odenix.collections.PersistentMap
-
Returns an empty persistent map.
- clear() - Method in interface org.odenix.collections.PersistentSet
-
Returns an empty persistent set.
- contains(E) - Method in interface org.odenix.collections.ImmutableCollection
-
Returns
trueif this collection contains the specified element. - contains(E) - Method in class org.odenix.collections.ImmutableList.SubList
- containsAll(Collection) - Method in interface org.odenix.collections.ImmutableCollection
-
Returns
trueif this collection contains all elements in the specified collection. - containsAll(Collection) - Method in class org.odenix.collections.ImmutableList.SubList
- containsKey(K) - Method in interface org.odenix.collections.ImmutableMap
-
Returns
trueif the map contains the specifiedkey. - containsValue(V) - Method in interface org.odenix.collections.ImmutableMap
-
Returns
trueif the map maps one or more keys to the specifiedvalue.
E
- entries() - Method in interface org.odenix.collections.ImmutableMap
-
Returns a read-only Set of all key/value pairs in this map.
- equals(Object) - Method in class org.odenix.collections.ImmutableList.SubList
F
- from(CharSequence) - Static method in interface org.odenix.collections.ImmutableList
-
Returns an immutable list containing all characters.
- from(CharSequence) - Static method in interface org.odenix.collections.ImmutableSet
-
Returns an immutable set of all characters.
- from(CharSequence) - Static method in interface org.odenix.collections.PersistentList
-
Returns a persistent list containing all characters.
- from(CharSequence) - Static method in interface org.odenix.collections.PersistentSet
-
Returns a persistent set of all characters.
- from(Iterable) - Static method in interface org.odenix.collections.PersistentMap
-
Returns a persistent map containing all entries from the specified entry sequence.
- from(Iterable) - Static method in interface org.odenix.collections.ImmutableList
-
Returns an immutable list containing all elements of the specified collection.
- from(Iterable) - Static method in interface org.odenix.collections.ImmutableSet
-
Returns an immutable set of all elements of the specified collection.
- from(Iterable) - Static method in interface org.odenix.collections.PersistentList
-
Returns a persistent list containing all elements of the specified collection.
- from(Iterable) - Static method in interface org.odenix.collections.PersistentSet
-
Returns a persistent set of all elements of the specified collection.
- from(Map.Entry[]) - Static method in interface org.odenix.collections.PersistentMap
-
Returns a persistent map containing all entries from the specified array.
- from(Map) - Static method in interface org.odenix.collections.ImmutableMap
-
Returns an immutable map containing all entries from the specified map.
- from(Map) - Static method in interface org.odenix.collections.PersistentMap
-
Returns a persistent map containing all entries from the specified map.
- from(Stream) - Static method in interface org.odenix.collections.PersistentMap
-
Returns a persistent map containing all entries from the specified sequence.
- from(Stream) - Static method in interface org.odenix.collections.ImmutableList
-
Returns an immutable list containing all elements of the specified sequence.
- from(Stream) - Static method in interface org.odenix.collections.ImmutableSet
-
Returns an immutable set of all elements of the specified sequence.
- from(Stream) - Static method in interface org.odenix.collections.PersistentList
-
Returns a persistent list containing all elements of the specified sequence.
- from(Stream) - Static method in interface org.odenix.collections.PersistentSet
-
Returns a persistent set of all elements of the specified sequence.
- from(ImmutableMap) - Static method in interface org.odenix.collections.ImmutableMap
-
Returns an immutable map containing all entries from the specified map.
- from(ImmutableMap) - Static method in interface org.odenix.collections.PersistentMap
-
Returns a persistent map containing all entries from the specified map.
- from(T[]) - Static method in interface org.odenix.collections.ImmutableList
-
Returns an immutable list containing all elements of the specified array.
- from(T[]) - Static method in interface org.odenix.collections.ImmutableSet
-
Returns an immutable set of all elements of the specified array.
- from(T[]) - Static method in interface org.odenix.collections.PersistentList
-
Returns a persistent list containing all elements of the specified array.
- from(T[]) - Static method in interface org.odenix.collections.PersistentSet
-
Returns a persistent set of all elements of the specified array.
G
- get(int) - Method in interface org.odenix.collections.ImmutableList
-
Returns the element at the specified index in the list.
- get(int) - Method in class org.odenix.collections.ImmutableList.SubList
- get(K) - Method in interface org.odenix.collections.ImmutableMap
-
Returns the value corresponding to the given
key, ornullif such a key is not present in the map.
H
- hashCode() - Method in class org.odenix.collections.ImmutableList.SubList
- hashFrom(CharSequence) - Static method in interface org.odenix.collections.PersistentSet
-
Returns a persistent set of all characters.
- hashFrom(Iterable) - Static method in interface org.odenix.collections.PersistentMap
-
Returns a persistent map containing all entries from the specified entry sequence.
- hashFrom(Iterable) - Static method in interface org.odenix.collections.PersistentSet
-
Returns a persistent set containing all elements from the specified collection.
- hashFrom(Map.Entry[]) - Static method in interface org.odenix.collections.PersistentMap
-
Returns a persistent map containing all entries from the specified array.
- hashFrom(Map) - Static method in interface org.odenix.collections.PersistentMap
-
Returns a persistent map containing all entries from the specified map.
- hashFrom(Stream) - Static method in interface org.odenix.collections.PersistentMap
-
Returns a persistent map containing all entries from the specified sequence.
- hashFrom(Stream) - Static method in interface org.odenix.collections.PersistentSet
-
Returns a persistent set of all elements of the specified sequence.
- hashFrom(T[]) - Static method in interface org.odenix.collections.PersistentSet
-
Returns a persistent set of all elements of the specified array.
- hashOf() - Static method in interface org.odenix.collections.PersistentMap
-
Returns an empty persistent map.
- hashOf() - Static method in interface org.odenix.collections.PersistentSet
-
Returns an empty persistent set.
- hashOf(E...) - Static method in interface org.odenix.collections.PersistentSet
-
Returns a new persistent set with the given elements.
- hashOf(Map.Entry...) - Static method in interface org.odenix.collections.PersistentMap
-
Returns a new persistent map with the specified contents, given as a list of pairs where the first component is the key and the second is the value.
I
- ImmutableCollection<E> - Interface in org.odenix.collections
-
A generic immutable collection of elements.
- ImmutableList<E> - Interface in org.odenix.collections
-
A generic immutable ordered collection of elements.
- ImmutableList.SubList<E> - Class in org.odenix.collections
- ImmutableMap<K,
V> - Interface in org.odenix.collections -
A generic immutable collection that holds pairs of objects (keys and values) and supports efficiently retrieving the value corresponding to each key.
- ImmutableSet<E> - Interface in org.odenix.collections
-
A generic immutable unordered collection of elements that does not support duplicate elements.
- indexOf(E) - Method in interface org.odenix.collections.ImmutableList
-
Returns the index of the first occurrence of the specified element in the list, or
-1if the specified element is not contained in the list. - indexOf(E) - Method in class org.odenix.collections.ImmutableList.SubList
- intersect(Iterable) - Method in interface org.odenix.collections.PersistentCollection
-
Returns all elements in this collection that are also contained in the specified
elementscollection. - intersect(Iterable) - Method in interface org.odenix.collections.PersistentSet
-
Returns all elements in this set that are also contained in the specified
elementscollection. - isEmpty() - Method in interface org.odenix.collections.ImmutableCollection
-
Returns
trueif this collection contains no elements. - isEmpty() - Method in interface org.odenix.collections.ImmutableMap
-
Returns
trueif the map is empty (contains no elements),falseotherwise. - iterator() - Method in interface org.odenix.collections.ImmutableCollection
-
Returns an iterator over the elements of this collection.
- iterator() - Method in class org.odenix.collections.ImmutableList.SubList
K
- keys() - Method in interface org.odenix.collections.ImmutableMap
-
Returns a read-only Set of all keys in this map.
L
- lastIndexOf(E) - Method in interface org.odenix.collections.ImmutableList
-
Returns the index of the last occurrence of the specified element in the list, or -1 if the specified element is not contained in the list.
- lastIndexOf(E) - Method in class org.odenix.collections.ImmutableList.SubList
- listIterator() - Method in interface org.odenix.collections.ImmutableList
-
Returns a list iterator over the elements in this list (in proper sequence).
- listIterator() - Method in class org.odenix.collections.ImmutableList.SubList
- listIterator(int) - Method in interface org.odenix.collections.ImmutableList
-
Returns a list iterator over the elements in this list (in proper sequence), starting at the specified
index. - listIterator(int) - Method in class org.odenix.collections.ImmutableList.SubList
M
- mutate(Consumer) - Method in interface org.odenix.collections.PersistentList
- mutate(Consumer) - Method in interface org.odenix.collections.PersistentMap
- mutate(Consumer) - Method in interface org.odenix.collections.PersistentSet
O
- of() - Static method in interface org.odenix.collections.PersistentList
-
Returns an empty persistent list.
- of() - Static method in interface org.odenix.collections.PersistentMap
-
Returns an empty persistent map.
- of() - Static method in interface org.odenix.collections.PersistentSet
-
Returns an empty persistent set.
- of(E...) - Static method in interface org.odenix.collections.PersistentList
-
Returns a new persistent list of the specified elements.
- of(E...) - Static method in interface org.odenix.collections.PersistentSet
-
Returns a new persistent set with the given elements.
- of(Map.Entry...) - Static method in interface org.odenix.collections.PersistentMap
-
Returns a new persistent map with the specified contents, given as a list of pairs where the first component is the key and the second is the value.
- org.odenix.collections - module org.odenix.collections
-
A persistent collection library for Java 21+.
- org.odenix.collections - package org.odenix.collections
-
Public API for immutable and persistent collection types: lists, sets, and maps.
P
- parallelStream() - Method in interface org.odenix.collections.ImmutableCollection
-
Returns a possibly parallel
Streamwith this collection as its source. - PersistentCollection<E> - Interface in org.odenix.collections
-
A generic persistent collection of elements that supports adding and removing elements.
- PersistentCollection.Builder<E> - Interface in org.odenix.collections
-
A generic builder of the persistent collection.
- PersistentList<E> - Interface in org.odenix.collections
-
A generic persistent ordered collection of elements that supports adding and removing elements.
- PersistentList.Builder<E> - Interface in org.odenix.collections
-
A generic builder of the persistent list.
- PersistentMap<K,
V> - Interface in org.odenix.collections -
A generic persistent collection that holds pairs of objects (keys and values) and supports efficiently retrieving the value corresponding to each key.
- PersistentMap.Builder<K,
V> - Interface in org.odenix.collections -
A generic builder of the persistent map.
- PersistentSet<E> - Interface in org.odenix.collections
-
A generic persistent unordered collection of elements that does not support duplicate elements, and supports adding and removing elements.
- PersistentSet.Builder<E> - Interface in org.odenix.collections
-
A generic builder of the persistent set.
- put(K, V) - Method in interface org.odenix.collections.PersistentMap
-
Returns the result of associating the specified
valuewith the specifiedkeyin this map. - putAll(Iterable) - Method in interface org.odenix.collections.PersistentMap
-
Returns the result of replacing or adding entries to this map from the specified key-value pairs.
- putAll(Map.Entry[]) - Method in interface org.odenix.collections.PersistentMap
-
Returns the result of replacing or adding entries to this map from the specified key-value pairs.
- putAll(Map) - Method in interface org.odenix.collections.PersistentMap
-
Returns the result of merging the specified
mmap with this map. - putAll(Stream) - Method in interface org.odenix.collections.PersistentMap
-
Returns the result of replacing or adding entries to this map from the specified key-value pairs.
R
- remove(E) - Method in interface org.odenix.collections.PersistentCollection
-
Returns the result of removing a single appearance of the specified
elementfrom this collection. - remove(E) - Method in interface org.odenix.collections.PersistentList
-
Returns the result of removing the first appearance of the specified
elementfrom this list. - remove(E) - Method in interface org.odenix.collections.PersistentSet
-
Returns the result of removing the specified
elementfrom this set. - remove(K) - Method in interface org.odenix.collections.PersistentMap
-
Returns the result of removing the specified
keyand its corresponding value from this map. - remove(K, V) - Method in interface org.odenix.collections.PersistentMap
-
Returns the result of removing the entry that maps the specified
keyto the specifiedvalue. - removeAll(E[]) - Method in interface org.odenix.collections.PersistentCollection
-
Returns the result of removing all elements in this collection that are also contained in the specified
elementsarray. - removeAll(E[]) - Method in interface org.odenix.collections.PersistentList
-
Returns the result of removing all elements in this list that are also contained in the specified
elementsarray. - removeAll(E[]) - Method in interface org.odenix.collections.PersistentSet
-
Returns the result of removing all elements in this set that are also contained in the specified
elementsarray. - removeAll(Iterable) - Method in interface org.odenix.collections.PersistentCollection
-
Returns the result of removing all elements in this collection that are also contained in the specified
elementscollection. - removeAll(Iterable) - Method in interface org.odenix.collections.PersistentList
-
Returns the result of removing all elements in this list that are also contained in the specified
elementscollection. - removeAll(Iterable) - Method in interface org.odenix.collections.PersistentSet
-
Returns the result of removing all elements in this set that are also contained in the specified
elementscollection. - removeAll(Iterable) - Method in interface org.odenix.collections.PersistentMap
-
Returns the result of removing the specified
keysand their corresponding values from this map. - removeAll(Collection) - Method in interface org.odenix.collections.PersistentCollection
-
Returns the result of removing all elements in this collection that are also contained in the specified
elementscollection. - removeAll(Collection) - Method in interface org.odenix.collections.PersistentList
-
Returns the result of removing all elements in this list that are also contained in the specified
elementscollection. - removeAll(Collection) - Method in interface org.odenix.collections.PersistentSet
-
Returns the result of removing all elements in this set that are also contained in the specified
elementscollection. - removeAll(Predicate) - Method in interface org.odenix.collections.PersistentCollection
-
Returns the result of removing all elements in this collection that match the specified
predicate. - removeAll(Predicate) - Method in interface org.odenix.collections.PersistentList
-
Returns the result of removing all elements in this list that match the specified
predicate. - removeAll(Predicate) - Method in interface org.odenix.collections.PersistentSet
-
Returns the result of removing all elements in this set that match the specified
predicate. - removeAll(Stream) - Method in interface org.odenix.collections.PersistentCollection
-
Returns the result of removing all elements in this collection that are also contained in the specified
elementssequence. - removeAll(Stream) - Method in interface org.odenix.collections.PersistentList
-
Returns the result of removing all elements in this list that are also contained in the specified
elementssequence. - removeAll(Stream) - Method in interface org.odenix.collections.PersistentSet
-
Returns the result of removing all elements in this set that are also contained in the specified
elementssequence. - removeAll(Stream) - Method in interface org.odenix.collections.PersistentMap
-
Returns the result of removing the specified
keysand their corresponding values from this map. - removeAll(K[]) - Method in interface org.odenix.collections.PersistentMap
-
Returns the result of removing the specified
keysand their corresponding values from this map. - removeAt(int) - Method in interface org.odenix.collections.PersistentList
-
Returns a new persistent list with the element at the specified
indexremoved. - retainAll(Collection) - Method in interface org.odenix.collections.PersistentCollection
-
Returns all elements in this collection that are also contained in the specified
elementscollection. - retainAll(Collection) - Method in interface org.odenix.collections.PersistentList
-
Returns all elements in this list that are also contained in the specified
elementscollection. - retainAll(Collection) - Method in interface org.odenix.collections.PersistentSet
-
Returns all elements in this set that are also contained in the specified
elementscollection.
S
- set(int, E) - Method in interface org.odenix.collections.PersistentList
-
Returns a new persistent list with the element at the specified
indexreplaced with the specifiedelement. - size() - Method in interface org.odenix.collections.ImmutableCollection
-
Returns the number of elements in this collection.
- size() - Method in class org.odenix.collections.ImmutableList.SubList
- size() - Method in interface org.odenix.collections.ImmutableMap
-
Returns the number of key/value pairs in the map.
- stream() - Method in interface org.odenix.collections.ImmutableCollection
-
Returns a sequential
Streamwith this collection as its source. - subList(int, int) - Method in interface org.odenix.collections.ImmutableList
-
Returns a view of the portion of this list between the specified
fromIndex(inclusive) andtoIndex(exclusive). - subList(int, int) - Method in class org.odenix.collections.ImmutableList.SubList
T
- toString() - Method in class org.odenix.collections.ImmutableList.SubList
V
- values() - Method in interface org.odenix.collections.ImmutableMap
-
Returns a read-only Collection of all values in this map.
All Classes and Interfaces|All Packages