@Freezable(value=ReadOnlyList.class) public interface FreezableList<E> extends ReadOnlyList<E>, List<E>, FreezableCollection<E>
list that can be frozen.
It is recommended to use only ReadOnly or Immutable types for the elements.BackedFreezableList,
FreezableArrayList,
FreezableLinkedList| Modifier and Type | Method and Description |
|---|---|
default boolean |
contains(@Nullable Object object) |
default boolean |
containsAll(@Nonnull Collection<?> collection) |
@Nonnull @Frozen ReadOnlyList<E> |
freeze() |
default E |
get(@Index int index) |
default @GreaterThanOrEqualTo(value=-1L) int |
indexOf(@Nullable Object object) |
default boolean |
isEmpty() |
default @GreaterThanOrEqualTo(value=-1L) int |
lastIndexOf(@Nullable Object object) |
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.
|
@Nonnull FreezableList<E> |
subList(@Index int fromIndex,
@IndexForInsertion int toIndex) |
default @Nonnull Object[] |
toArray() |
default <T> T[] |
toArray(T[] array) |
clone, listIterator, listIterator, withadd, add, addAll, addAll, clear, equals, hashCode, iterator, listIterator, listIterator, remove, remove, replaceAll, set, size, sort, 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, instanceOf, intersect, isAscending, isDescending, isEmptyOrSingle, isOrdered, isSingle, isStrictlyAscending, isStrictlyDescending, join, join, join, join, join, join, join, join, 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, hasSize, limit, sizeAtLeast, sizeAtMost, zipLongest, zipShortest@Impure @NonFrozenRecipient @Chainable @Nonnull @Frozen @Nonnull @Frozen ReadOnlyList<E> freeze()
freeze in interface FreezableCollection<E>freeze in interface net.digitalid.utility.freezable.FreezableInterfacefreeze in interface FreezableIterable<E>@Pure @NonCapturable @Nonnull @Nonnull FreezableList<E> subList(@Index @Index int fromIndex, @IndexForInsertion @IndexForInsertion int toIndex)
subList in interface List<E>subList in interface ReadOnlyList<E>List.subList(int, int)@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 List<E>@Pure @NonCapturable default E get(@Index @Index int index)
@Pure @GreaterThanOrEqualTo(value=-1L) default @GreaterThanOrEqualTo(value=-1L) int indexOf(@NonCaptured @Unmodified @Nullable @Nullable Object object)
@Pure @GreaterThanOrEqualTo(value=-1L) default @GreaterThanOrEqualTo(value=-1L) int lastIndexOf(@NonCaptured @Unmodified @Nullable @Nullable Object object)
lastIndexOf in interface net.digitalid.utility.functional.iterables.FiniteIterable<E>lastIndexOf in interface List<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 List<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 List<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 List<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 List<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 List<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 List<E>Copyright © 2017. All rights reserved.