public interface ArrayView<A,SELF extends ArrayView<A,SELF>> extends Iterable<A>
| Modifier and Type | Method and Description |
|---|---|
SELF |
append(Iterable<? extends A> items)
Клонирование коллекции и добавление элементов
|
SELF |
clear()
Создание пустой коллекции
|
default SELF |
filter(Predicate<A> condition) |
default Optional<A> |
first() |
default <B> Optional<B> |
first(Function<A,B> mapper) |
A |
get(int idx)
Получение элемента по его индексу
|
int |
getSize()
Кол-во элементов
|
default <B> List<B> |
map(Function<A,B> mapper) |
default int |
size()
Кол-во элементов
|
forEach, iterator, spliteratorint getSize()
default int size()
A get(int idx)
idx - индексSELF clear()
SELF append(Iterable<? extends A> items)
items - добавляемые элементыCopyright © 2020. All rights reserved.