| Package | Description |
|---|---|
| net.digitalid.utility.collections.array |
Provides the read-only and the freezable array.
|
| net.digitalid.utility.collections.collection |
Provides the read-only and the freezable collection.
|
| net.digitalid.utility.collections.iterable |
Provides the read-only and the freezable iterable.
|
| net.digitalid.utility.collections.iterator |
Provides an iterator whose underlying collection can be frozen.
|
| net.digitalid.utility.collections.list |
Provides one read-only and several freezable lists.
|
| net.digitalid.utility.collections.map |
Provides one read-only and several freezable maps.
|
| net.digitalid.utility.collections.set |
Provides one read-only and several freezable sets.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> @NonFrozen FreezableArray<E> |
FreezableArray.withElementsOf(FreezableCollection<? extends E> collection)
Returns a new freezable array with the elements of the given freezable collection or null if the given collection is null.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BackedFreezableCollection<E>
This class implements a
collection that can be frozen. |
| Modifier and Type | Method and Description |
|---|---|
@Nonnull @NonFrozen FreezableCollection<E> |
ReadOnlyCollection.clone() |
@Nonnull @NonFrozen FreezableCollection<E> |
BackedFreezableCollection.clone() |
| Modifier and Type | Method and Description |
|---|---|
default boolean |
FreezableCollection.addAll(@Nonnull FreezableCollection<? extends E> collection)
Adds the elements of the given collection to this collection.
|
default boolean |
FreezableCollection.removeAll(@Nonnull FreezableCollection<?> collection)
Removes the elements of the given collection from this collection.
|
default boolean |
FreezableCollection.retainAll(@Nonnull FreezableCollection<?> collection)
Retains the elements of the given collection and removes all other.
|
| Modifier and Type | Method and Description |
|---|---|
default boolean |
FreezableIterable.containsAll(@Nonnull FreezableCollection<?> collection)
Returns whether this iterable contains all of the elements of the given collection.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> @Nonnull FreezableIterator<E> |
FreezableIterator.with(@Nonnull Iterator<E> iterator,
@Nonnull FreezableCollection<E> collection)
Returns a new freezable iterator backed by the given iterator and freezable collection.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
FreezableList<E>
This interface models a
list that can be frozen. |
| Modifier and Type | Class and Description |
|---|---|
class |
BackedFreezableList<E>
This class implements a
set that can be frozen. |
class |
FreezableArrayList<E>
This class extends the
ArrayList and makes it freezable. |
class |
FreezableLinkedList<E>
This class extends the
LinkedList and makes it freezable. |
| Modifier and Type | Method and Description |
|---|---|
static <E> @NonFrozen FreezableLinkedList<E> |
FreezableLinkedList.withElementsOf(FreezableCollection<? extends E> collection)
Returns a new freezable linked list with the elements of the given freezable collection or null if the given collection is null.
|
static <E> @NonFrozen FreezableArrayList<E> |
FreezableArrayList.withElementsOf(FreezableCollection<? extends E> collection)
Returns a new freezable array list with the elements of the given freezable collection or null if the given collection is null.
|
| Modifier and Type | Method and Description |
|---|---|
@Nonnull FreezableCollection<V> |
FreezableHashMap.values() |
@Nonnull @NullableElements FreezableCollection<V> |
FreezableLinkedHashMap.values() |
@Nonnull FreezableCollection<V> |
FreezableMap.values() |
| Modifier and Type | Method and Description |
|---|---|
default void |
FreezableMap.removeAll(@Nonnull FreezableCollection<?> keys)
Removes the given keys from this map.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
FreezableSet<E>
This interface models a
set that can be frozen. |
| Modifier and Type | Class and Description |
|---|---|
class |
BackedFreezableSet<E>
This class implements a
set that can be frozen. |
class |
FreezableHashSet<E>
This class extends the
HashSet and makes it freezable. |
class |
FreezableLinkedHashSet<E>
This class extends the
LinkedHashSet and makes it freezable. |
| Modifier and Type | Method and Description |
|---|---|
static <E> @NonFrozen FreezableLinkedHashSet<E> |
FreezableLinkedHashSet.withElementsOf(FreezableCollection<? extends E> collection)
Returns a new freezable linked hash set with the elements of the given freezable collection or null if the given collection is null.
|
static <E> @NonFrozen FreezableHashSet<E> |
FreezableHashSet.withElementsOf(FreezableCollection<? extends E> collection)
Returns a new freezable hash set with the elements of the given freezable collection or null if the given collection is null.
|
Copyright © 2017. All rights reserved.