public final class UnmodifiableArrayList<E> extends AbstractList<E> implements RandomAccess, Serializable
modCount| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object o) |
static <E> UnmodifiableArrayList<E> |
empty() |
void |
forEach(Consumer<? super E> action) |
E |
get(int index) |
int |
indexOf(Object o) |
static <E> UnmodifiableArrayList<E> |
ofCopy(E[] array) |
static <E> UnmodifiableArrayList<E> |
ofRef(E[] array) |
void |
replaceAll(UnaryOperator<E> operator) |
E |
set(int index,
E element) |
int |
size() |
void |
sort(Comparator<? super E> c) |
Spliterator<E> |
spliterator() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
add, add, addAll, clear, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subListaddAll, containsAll, isEmpty, remove, removeAll, retainAll, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, isEmpty, remove, removeAll, retainAllparallelStream, removeIf, streampublic static <E> UnmodifiableArrayList<E> empty()
public static <E> UnmodifiableArrayList<E> ofCopy(E[] array)
public static <E> UnmodifiableArrayList<E> ofRef(E[] array)
public int size()
size in interface Collection<E>size in interface List<E>size in class AbstractCollection<E>public Object[] toArray()
toArray in interface Collection<E>toArray in interface List<E>toArray in class AbstractCollection<E>public <T> T[] toArray(T[] a)
toArray in interface Collection<E>toArray in interface List<E>toArray in class AbstractCollection<E>public E get(int index)
public int indexOf(Object o)
public boolean contains(Object o)
contains in interface Collection<E>contains in interface List<E>contains in class AbstractCollection<E>public Spliterator<E> spliterator()
spliterator in interface Iterable<E>spliterator in interface Collection<E>spliterator in interface List<E>public void replaceAll(UnaryOperator<E> operator)
replaceAll in interface List<E>public void sort(Comparator<? super E> c)
Copyright © 2025 vpc open source initiative. All rights reserved.