| Package | Description |
|---|---|
| net.digitalid.utility.collections.array |
Provides the read-only and the freezable array.
|
| net.digitalid.utility.collections.iterable |
Provides the read-only and the freezable iterable.
|
| Modifier and Type | Method and Description |
|---|---|
@Nonnull @NonFrozen FreezableArray<E> |
FreezableArray.clone() |
@Nonnull @NonFrozen FreezableArray<E> |
ReadOnlyArray.clone() |
@Nonnull @NonFrozen FreezableArray<E> |
FreezableArray.setAll(E element)
Sets each element of this array to the given element.
|
static <E> @NonFrozen FreezableArray<E> |
FreezableArray.withElements(E... elements)
Returns a new freezable array with the given elements or null if the given array is null.
|
static <E> @NonFrozen FreezableArray<E> |
FreezableArray.withElementsOf(Collection<? extends E> collection)
Returns a new freezable array with the elements of the given collection or null if the given collection is null.
|
static <E> @NonFrozen FreezableArray<E> |
FreezableArray.withElementsOf(net.digitalid.utility.functional.iterables.FiniteIterable<? extends E> iterable)
Returns a new freezable array with the elements of the given iterable or null if the given iterable is null.
|
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.
|
static <E> @Nonnull @NonFrozen FreezableArray<E> |
FreezableArray.withSize(@NonNegative int size)
Returns a new freezable array with the given size.
|
| Modifier and Type | Method and Description |
|---|---|
default @Nonnull @NonFrozen FreezableArray<ELEMENT> |
ReadOnlyIterable.toFreezableArray()
Returns the elements of this collection as a freezable array.
|
Copyright © 2017. All rights reserved.