Class UnmodifiableArrayList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
net.thevpc.tson.impl.util.UnmodifiableArrayList<E>
- All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, List<E>, RandomAccess, SequencedCollection<E>
public final class UnmodifiableArrayList<E>
extends AbstractList<E>
implements RandomAccess, Serializable
- See Also:
-
Field Summary
Fields inherited from class AbstractList
modCount -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic <E> UnmodifiableArrayList<E> empty()voidget(int index) intstatic <E> UnmodifiableArrayList<E> ofCopy(E[] array) static <E> UnmodifiableArrayList<E> ofRef(E[] array) voidreplaceAll(UnaryOperator<E> operator) intsize()voidsort(Comparator<? super E> c) Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class AbstractList
add, add, addAll, clear, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subListMethods inherited from class AbstractCollection
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
addAll, addFirst, addLast, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, retainAll, reversed
-
Method Details
-
empty
-
ofCopy
-
ofRef
-
size
public int size()- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein interfaceList<E>- Specified by:
sizein classAbstractCollection<E>
-
toArray
- Specified by:
toArrayin interfaceCollection<E>- Specified by:
toArrayin interfaceList<E>- Overrides:
toArrayin classAbstractCollection<E>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<E>- Specified by:
toArrayin interfaceList<E>- Overrides:
toArrayin classAbstractCollection<E>
-
get
-
set
-
indexOf
-
contains
- Specified by:
containsin interfaceCollection<E>- Specified by:
containsin interfaceList<E>- Overrides:
containsin classAbstractCollection<E>
-
spliterator
- Specified by:
spliteratorin interfaceCollection<E>- Specified by:
spliteratorin interfaceIterable<E>- Specified by:
spliteratorin interfaceList<E>
-
forEach
-
replaceAll
- Specified by:
replaceAllin interfaceList<E>
-
sort
-