V
- The type of the view.E
- The type of the underlying element.public class UnmodifiableCollectionView<V,E> extends AbstractCollection<V> implements Serializable
Modifier and Type | Class and Description |
---|---|
class |
UnmodifiableCollectionView.ReusableIterator |
Constructor and Description |
---|
UnmodifiableCollectionView(Function<E,V> viewer,
Collection<E> elements) |
Modifier and Type | Method and Description |
---|---|
UnmodifiableCollectionView.ReusableIterator |
iterator() |
int |
size() |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
public UnmodifiableCollectionView(Function<E,V> viewer, Collection<E> elements)
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-2020 Real Logic Limited. All Rights Reserved.