Class ConcurrentHashMapV8.ValuesView<K,V>
java.lang.Object
org.glassfish.jersey.internal.util.collection.ConcurrentHashMapV8.CollectionView<K,V,V>
org.glassfish.jersey.internal.util.collection.ConcurrentHashMapV8.ValuesView<K,V>
- All Implemented Interfaces:
Serializable, Iterable<V>, Collection<V>
- Enclosing class:
ConcurrentHashMapV8<K,V>
static final class ConcurrentHashMapV8.ValuesView<K,V>
extends ConcurrentHashMapV8.CollectionView<K,V,V>
implements Collection<V>, Serializable
A view of a ConcurrentHashMapV8 as a
Collection of
values, in which additions are disabled. This class cannot be
directly instantiated. See ConcurrentHashMapV8.values().-
Field Summary
FieldsFields inherited from class ConcurrentHashMapV8.CollectionView
map -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal booleanaddAll(Collection<? extends V> c) final booleaniterator()Returns a "weakly consistent" iterator that will never throwConcurrentModificationException, and guarantees to traverse elements as they existed upon construction of the iterator, and may (but is not guaranteed to) reflect any modifications subsequent to construction.final booleanMethods inherited from class ConcurrentHashMapV8.CollectionView
clear, containsAll, getMap, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Collection
clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ValuesView
ValuesView(ConcurrentHashMapV8<K, V> map)
-
-
Method Details
-
contains
- Specified by:
containsin interfaceCollection<K>- Specified by:
containsin classConcurrentHashMapV8.CollectionView<K,V, V>
-
remove
- Specified by:
removein interfaceCollection<K>- Specified by:
removein classConcurrentHashMapV8.CollectionView<K,V, V>
-
iterator
Description copied from class:ConcurrentHashMapV8.CollectionViewReturns a "weakly consistent" iterator that will never throwConcurrentModificationException, and guarantees to traverse elements as they existed upon construction of the iterator, and may (but is not guaranteed to) reflect any modifications subsequent to construction. -
add
- Specified by:
addin interfaceCollection<K>
-
addAll
- Specified by:
addAllin interfaceCollection<K>
-