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 org.glassfish.jersey.internal.util.collection.ConcurrentHashMapV8.CollectionView
map
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
final boolean
addAll
(Collection<? extends V> c) final boolean
iterator()
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 boolean
Methods inherited from class org.glassfish.jersey.internal.util.collection.ConcurrentHashMapV8.CollectionView
clear, containsAll, getMap, isEmpty, removeAll, retainAll, size, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.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:
contains
in interfaceCollection<K>
- Specified by:
contains
in classConcurrentHashMapV8.CollectionView<K,
V, V>
-
remove
- Specified by:
remove
in interfaceCollection<K>
- Specified by:
remove
in classConcurrentHashMapV8.CollectionView<K,
V, V>
-
iterator
Description copied from class:ConcurrentHashMapV8.CollectionView
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. -
add
- Specified by:
add
in interfaceCollection<K>
-
addAll
- Specified by:
addAll
in interfaceCollection<K>
-