V - The type of the view.E - The type of the underlying element.public class UnmodifiableCollectionView<V,E> extends AbstractCollection<V>
| Modifier and Type | Class and Description |
|---|---|
class |
UnmodifiableCollectionView.ReusableIterator
A stateful reusable iterator.
|
| Constructor and Description |
|---|
UnmodifiableCollectionView(Function<E,V> viewer,
Collection<E> elements)
Constructs an unmodifiable view over collection.
|
| Modifier and Type | Method and Description |
|---|---|
UnmodifiableCollectionView.ReusableIterator |
iterator() |
int |
size() |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic UnmodifiableCollectionView(Function<E,V> viewer, Collection<E> elements)
viewer - function.elements - collection to create a view for.public int size()
size in interface Collection<V>size in class AbstractCollection<V>public UnmodifiableCollectionView.ReusableIterator iterator()
iterator in interface Iterable<V>iterator in interface Collection<V>iterator in class AbstractCollection<V>Copyright © 2014-2021 Real Logic Limited. All Rights Reserved.