N - Тип элементаpublic class ArrayImmutableList<N> extends AbstractImmutableList<N> implements ImmutableList<N>
| Constructor and Description |
|---|
ArrayImmutableList() |
ArrayImmutableList(ArrayImmutableList<? extends N> sample) |
ArrayImmutableList(Iterable<? extends N> sample) |
ArrayImmutableList(List<? extends N> sample) |
| Modifier and Type | Method and Description |
|---|---|
ArrayImmutableList<N> |
add(N n) |
ArrayImmutableList<N> |
clear() |
ArrayImmutableList<N> |
clone() |
boolean |
contains(N n) |
ArrayImmutableList<N> |
delete(int idx) |
N |
get(int index) |
int |
indexOf(N n) |
ArrayImmutableList<N> |
insert(int idx,
N n) |
boolean |
isEmpty() |
Iterator<N> |
iterator() |
protected ArrayImmutableList<N> |
list(List<N> list) |
ArrayImmutableList<N> |
remove(N n) |
ArrayImmutableList<N> |
set(int index,
N n) |
int |
size() |
sublistequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsublistforEach, spliteratorpublic ArrayImmutableList()
public ArrayImmutableList(ArrayImmutableList<? extends N> sample)
public ArrayImmutableList<N> clone()
public N get(int index)
get in interface ImmutableList<N>protected ArrayImmutableList<N> list(List<N> list)
public ArrayImmutableList<N> set(int index, N n)
set in interface ImmutableList<N>public ArrayImmutableList<N> remove(N n)
remove in interface ImmutableCollection<N>remove in interface ImmutableList<N>public ArrayImmutableList<N> delete(int idx)
delete in interface ImmutableList<N>public ArrayImmutableList<N> add(N n)
add in interface ImmutableCollection<N>add in interface ImmutableList<N>public ArrayImmutableList<N> insert(int idx, N n)
insert in interface ImmutableList<N>public ArrayImmutableList<N> clear()
clear in interface ImmutableCollection<N>clear in interface ImmutableList<N>public boolean isEmpty()
isEmpty in interface ImmutableCollection<N>public int size()
size in interface ImmutableCollection<N>public boolean contains(N n)
contains in interface ImmutableCollection<N>public int indexOf(N n)
indexOf in interface ImmutableList<N>Copyright © 2018. All rights reserved.