@Freezable(value=ReadOnlyCollection.class) public interface FreezableCollection<E> extends ReadOnlyCollection<E>, Collection<E>, FreezableIterable<E>
collection that can be frozen.
It is recommended to use only ReadOnly or Immutable types for the elements.FreezableList,
FreezableSet| Modifier and Type | Method and Description |
|---|---|
default boolean |
addAll(@Nonnull net.digitalid.utility.functional.iterables.FiniteIterable<? extends E> iterable)
Adds the elements of the given iterable to this collection.
|
default boolean |
addAll(@Nonnull FreezableCollection<? extends E> collection)
Adds the elements of the given collection to this collection.
|
default boolean |
contains(@Nullable Object object) |
default boolean |
containsAll(@Nonnull Collection<?> collection) |
@Nonnull FreezableIterator<E> |
freezableIterator()
Returns a freezable iterator over the elements in this collection.
|
@Nonnull @Frozen ReadOnlyCollection<E> |
freeze() |
default boolean |
isEmpty() |
default boolean |
removeAll(@Nonnull Collection<?> collection)
Removes the elements of the given collection from this collection.
|
default boolean |
removeAll(@Nonnull net.digitalid.utility.functional.iterables.FiniteIterable<?> iterable)
Removes the elements of the given iterable from this collection.
|
default boolean |
removeAll(@Nonnull FreezableCollection<?> collection)
Removes the elements of the given collection from this collection.
|
default boolean |
retainAll(@Nonnull Collection<?> collection)
Retains the elements of the given collection and removes all other.
|
default boolean |
retainAll(@Nonnull net.digitalid.utility.functional.iterables.FiniteIterable<?> iterable)
Retains the elements of the given iterable and removes all other.
|
default boolean |
retainAll(@Nonnull FreezableCollection<?> collection)
Retains the elements of the given collection and removes all other.
|
default @Nonnull Object[] |
toArray() |
default <T> T[] |
toArray(T[] array) |
cloneadd, addAll, clear, equals, hashCode, iterator, parallelStream, remove, removeIf, size, spliterator, streamcontainsAlltoFreezableArray, toFreezableList, toFreezableMap, toFreezableSetsize, sizeaverage, collect, combine, combine, containsAll, containsDuplicates, containsNull, count, distinct, doForEach, equals, evaluate, exclude, filter, filterNot, filterNulls, findFirst, findFirst, findLast, findLast, findUnique, flatten, flattenAll, flattenOne, getFirst, getFirst, getFirstOrNull, getLast, getLast, getLastOrNull, groupBy, indexOf, instanceOf, intersect, isAscending, isDescending, isEmptyOrSingle, isOrdered, isSingle, isStrictlyAscending, isStrictlyDescending, join, join, join, join, join, join, join, join, lastIndexOf, map, matchAll, matchAny, matchNone, max, max, max, max, min, min, min, min, of, of, reduce, reduce, repeated, reversed, skip, sorted, sorted, sumAsDouble, sumAsLong, toGenericArray, toList, toMap, toSet, zipLongest, zipShortestextract, get, hasSize, limit, sizeAtLeast, sizeAtMost, zipLongest, zipShortest@Impure @NonFrozenRecipient @Chainable @Nonnull @Frozen @Nonnull @Frozen ReadOnlyCollection<E> freeze()
freeze in interface net.digitalid.utility.freezable.FreezableInterfacefreeze in interface FreezableIterable<E>@Pure default boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in interface net.digitalid.utility.functional.iterables.CollectionIterable<E>isEmpty in interface net.digitalid.utility.interfaces.CountableisEmpty in interface net.digitalid.utility.functional.iterables.FiniteIterable<E>isEmpty in interface net.digitalid.utility.functional.iterables.FunctionalIterable<E>@Pure default boolean contains(@NonCaptured @Unmodified @Nullable @Nullable Object object)
contains in interface Collection<E>contains in interface net.digitalid.utility.functional.iterables.FiniteIterable<E>@Pure default boolean containsAll(@NonCaptured @Unmodified @Nonnull @Nonnull Collection<?> collection)
containsAll in interface Collection<E>containsAll in interface net.digitalid.utility.functional.iterables.FiniteIterable<E>@Pure @Capturable @Nonnull default @Nonnull Object[] toArray()
toArray in interface Collection<E>toArray in interface net.digitalid.utility.functional.iterables.FiniteIterable<E>@Pure @Capturable @Nonnull default <T> T[] toArray(@NonCaptured @Modified @Nonnull T[] array)
toArray in interface Collection<E>toArray in interface net.digitalid.utility.functional.iterables.FiniteIterable<E>@Pure @Capturable @Nonnull @Nonnull FreezableIterator<E> freezableIterator()
@Impure @NonFrozenRecipient default boolean addAll(@Nonnull @Nonnull net.digitalid.utility.functional.iterables.FiniteIterable<? extends E> iterable)
@Impure @NonFrozenRecipient default boolean addAll(@NonCaptured @Unmodified @Nonnull @Nonnull FreezableCollection<? extends E> collection)
@Impure @NonFrozenRecipient default boolean removeAll(@Nonnull @Nonnull net.digitalid.utility.functional.iterables.FiniteIterable<?> iterable)
@Impure @NonFrozenRecipient default boolean removeAll(@NonCaptured @Unmodified @Nonnull @Nonnull Collection<?> collection)
removeAll in interface Collection<E>@Impure @NonFrozenRecipient default boolean removeAll(@NonCaptured @Unmodified @Nonnull @Nonnull FreezableCollection<?> collection)
@Impure @NonFrozenRecipient default boolean retainAll(@Nonnull @Nonnull net.digitalid.utility.functional.iterables.FiniteIterable<?> iterable)
@Impure @NonFrozenRecipient default boolean retainAll(@NonCaptured @Unmodified @Nonnull @Nonnull Collection<?> collection)
retainAll in interface Collection<E>@Impure @NonFrozenRecipient default boolean retainAll(@NonCaptured @Unmodified @Nonnull @Nonnull FreezableCollection<?> collection)
Copyright © 2017. All rights reserved.