E - the element typepublic class ImmutableArrayList<E> extends ToJsonString implements List<E>, RandomAccess, Cloneable, Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
static Object[] |
EMPTY_OBJECT_ARRAY |
| 构造器和说明 |
|---|
ImmutableArrayList() |
ImmutableArrayList(Object[] elements) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(E e) |
void |
add(int index,
E element) |
boolean |
addAll(Collection<? extends E> c) |
boolean |
addAll(int index,
Collection<? extends E> c) |
void |
clear() |
Object |
clone() |
ImmutableArrayList<E> |
concat(E last) |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
E |
get(int index) |
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
E[] |
join(E last) |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
static <T> ImmutableArrayList<T> |
of()
Returns an empty list
|
static <T> ImmutableArrayList<T> |
of(List<T> list) |
static <T> ImmutableArrayList<T> |
of(List<T> list,
T last) |
static <T> ImmutableArrayList<T> |
of(T... array) |
static <T> ImmutableArrayList<T> |
of(T[] array,
T last) |
protected int |
offset() |
E |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeIf(Predicate<? super E> filter) |
void |
replaceAll(UnaryOperator<E> operator) |
boolean |
retainAll(Collection<?> c) |
E |
set(int index,
E element) |
int |
size() |
void |
sort(Comparator<? super E> c) |
Spliterator<E> |
spliterator() |
ImmutableArrayList<E> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
toStringparallelStream, streampublic static final Object[] EMPTY_OBJECT_ARRAY
public ImmutableArrayList()
public ImmutableArrayList(Object[] elements)
public static <T> ImmutableArrayList<T> of()
public static <T> ImmutableArrayList<T> of(T... array)
public static <T> ImmutableArrayList<T> of(T[] array, T last)
public static <T> ImmutableArrayList<T> of(List<T> list)
public static <T> ImmutableArrayList<T> of(List<T> list, T last)
protected int offset()
public final <T> T[] toArray(T[] a)
public final int lastIndexOf(Object o)
lastIndexOf 在接口中 List<E>public final boolean contains(Object o)
public final boolean containsAll(Collection<?> c)
containsAll 在接口中 Collection<E>containsAll 在接口中 List<E>public final ListIterator<E> listIterator()
listIterator 在接口中 List<E>public final ListIterator<E> listIterator(int index)
listIterator 在接口中 List<E>public final ImmutableArrayList<E> subList(int fromIndex, int toIndex)
public final Spliterator<E> spliterator()
spliterator 在接口中 Iterable<E>spliterator 在接口中 Collection<E>spliterator 在接口中 List<E>public final int hashCode()
public boolean equals(Object o)
public final ImmutableArrayList<E> concat(E last)
public final boolean remove(Object o)
public final boolean addAll(Collection<? extends E> c)
public final boolean addAll(int index,
Collection<? extends E> c)
public final boolean removeAll(Collection<?> c)
public final boolean removeIf(Predicate<? super E> filter)
removeIf 在接口中 Collection<E>public final boolean retainAll(Collection<?> c)
public final void replaceAll(UnaryOperator<E> operator)
replaceAll 在接口中 List<E>public final void sort(Comparator<? super E> c)
Copyright © 2023. All rights reserved.