@Freezable(value=ReadOnlySet.class) public interface FreezableSet<E> extends ReadOnlySet<E>, Set<E>, FreezableCollection<E>
set that can be frozen.
It is recommended to use only ReadOnly or Immutable types for the elements.BackedFreezableSet,
FreezableHashSet,
FreezableLinkedHashSet| Modifier and Type | Method and Description |
|---|---|
default boolean |
contains(@Nullable Object object) |
default boolean |
containsAll(@Nonnull Collection<?> collection) |
@Nonnull @Frozen ReadOnlySet<E> |
freeze() |
default boolean |
isEmpty() |
default boolean |
removeAll(@Nonnull Collection<?> 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 @Nonnull Object[] |
toArray() |
default <T> T[] |
toArray(T[] array) |
cloneadd, addAll, clear, equals, hashCode, iterator, remove, size, spliteratoraddAll, addAll, freezableIterator, removeAll, removeAll, retainAll, retainAllparallelStream, removeIf, 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 ReadOnlySet<E> freeze()
freeze in interface FreezableCollection<E>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 FreezableCollection<E>isEmpty in interface net.digitalid.utility.functional.iterables.FunctionalIterable<E>isEmpty in interface Set<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>contains in interface FreezableCollection<E>contains in interface Set<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>containsAll in interface FreezableCollection<E>containsAll in interface Set<E>@Impure @NonFrozenRecipient default boolean removeAll(@NonCaptured @Unmodified @Nonnull @Nonnull Collection<?> collection)
FreezableCollectionremoveAll in interface Collection<E>removeAll in interface FreezableCollection<E>removeAll in interface Set<E>@Impure @NonFrozenRecipient default boolean retainAll(@NonCaptured @Unmodified @Nonnull @Nonnull Collection<?> collection)
FreezableCollectionretainAll in interface Collection<E>retainAll in interface FreezableCollection<E>retainAll in interface Set<E>@Pure @Capturable @Nonnull default @Nonnull Object[] toArray()
toArray in interface Collection<E>toArray in interface net.digitalid.utility.functional.iterables.FiniteIterable<E>toArray in interface FreezableCollection<E>toArray in interface Set<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>toArray in interface FreezableCollection<E>toArray in interface Set<E>Copyright © 2017. All rights reserved.