@GenerateSubclass @Freezable(value=ReadOnlyList.class) public abstract class BackedFreezableList<E> extends BackedFreezableCollection<E> implements FreezableList<E>
freezable| Modifier | Constructor and Description |
|---|---|
protected |
BackedFreezableList(@Nonnull net.digitalid.utility.freezable.FreezableInterface freezable,
@Nonnull List<E> list) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(@IndexForInsertion int index,
E element) |
boolean |
addAll(@IndexForInsertion int index,
@Nonnull Collection<? extends E> collection) |
@Nonnull @NonFrozen FreezableList<E> |
clone() |
@Nonnull @Frozen ReadOnlyList<E> |
freeze() |
E |
get(@Index int index) |
@Nonnull net.digitalid.utility.functional.iterators.ReadOnlyListIterator<E> |
listIterator() |
@Nonnull net.digitalid.utility.functional.iterators.ReadOnlyListIterator<E> |
listIterator(@IndexForInsertion int index) |
E |
remove(@Index int index) |
E |
set(@Index int index,
E element) |
@Nonnull FreezableList<E> |
subList(@Index int fromIndex,
@IndexForInsertion int toIndex) |
@Nonnull String |
toString() |
static <E> @Nonnull BackedFreezableList<E> |
with(@Nonnull net.digitalid.utility.freezable.FreezableInterface freezable,
@Nonnull List<E> list)
Returns a new freezable list backed by the given freezable and list.
|
add, addAll, clear, equals, freezableIterator, hashCode, isFrozen, iterator, remove, removeAll, retainAll, size, withfinalize, getClass, notify, notifyAll, wait, wait, waitcontains, containsAll, indexOf, isEmpty, lastIndexOf, removeAll, retainAll, toArray, toArraywithadd, addAll, clear, equals, hashCode, iterator, remove, replaceAll, 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, zipShortest@Pure @Capturable @Nonnull public static <E> @Nonnull BackedFreezableList<E> with(@Shared @Modified @Nonnull @Nonnull net.digitalid.utility.freezable.FreezableInterface freezable, @Captured @Nonnull @Nonnull List<E> list)
@Impure @NonFrozenRecipient @Nonnull @Frozen public @Nonnull @Frozen ReadOnlyList<E> freeze()
freeze in interface FreezableCollection<E>freeze in interface FreezableIterable<E>freeze in interface FreezableList<E>freeze in interface net.digitalid.utility.freezable.FreezableInterfacefreeze in class BackedFreezableCollection<E>@Pure @Capturable @Nonnull @NonFrozen public @Nonnull @NonFrozen FreezableList<E> clone()
clone in interface ReadOnlyCollection<E>clone in interface ReadOnlyIterable<E>clone in interface ReadOnlyList<E>clone in interface net.digitalid.utility.freezable.ReadOnlyInterfaceclone in class BackedFreezableCollection<E>@Pure @NonCapturable public E get(@Index @Index int index)
@Pure @Capturable @Nonnull public @Nonnull net.digitalid.utility.functional.iterators.ReadOnlyListIterator<E> listIterator()
listIterator in interface List<E>listIterator in interface ReadOnlyList<E>List.listIterator()@Pure @Capturable @Nonnull public @Nonnull net.digitalid.utility.functional.iterators.ReadOnlyListIterator<E> listIterator(@IndexForInsertion @IndexForInsertion int index)
listIterator in interface List<E>listIterator in interface ReadOnlyList<E>List.listIterator(int)@Pure @NonCapturable @Nonnull public @Nonnull FreezableList<E> subList(@Index @Index int fromIndex, @IndexForInsertion @IndexForInsertion int toIndex)
subList in interface List<E>subList in interface FreezableList<E>subList in interface ReadOnlyList<E>List.subList(int, int)@Impure @NonFrozenRecipient @Capturable public E set(@Index @Index int index, @Captured E element)
@Impure
@NonFrozenRecipient
public void add(@IndexForInsertion
@IndexForInsertion int index,
@Captured
E element)
@Impure @NonFrozenRecipient @Capturable public E remove(@Index @Index int index)
@Impure
@NonFrozenRecipient
public boolean addAll(@IndexForInsertion
@IndexForInsertion int index,
@NonCaptured @Unmodified @Nonnull
@Nonnull Collection<? extends E> collection)
Copyright © 2017. All rights reserved.