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:
java.io.Serializable
,java.lang.Iterable<V>
,java.util.Collection<V>
- Enclosing class:
- ConcurrentHashMapV8<K,V>
static final class ConcurrentHashMapV8.ValuesView<K,V> extends ConcurrentHashMapV8.CollectionView<K,V,V> implements java.util.Collection<V>, java.io.Serializable
A view of a ConcurrentHashMapV8 as aCollection
of values, in which additions are disabled. This class cannot be directly instantiated. SeeConcurrentHashMapV8.values()
.
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Fields inherited from class org.glassfish.jersey.internal.util.collection.ConcurrentHashMapV8.CollectionView
map
-
-
Constructor Summary
Constructors Constructor Description ValuesView(ConcurrentHashMapV8<K,V> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(V e)
boolean
addAll(java.util.Collection<? extends V> c)
boolean
contains(java.lang.Object o)
java.util.Iterator<V>
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.boolean
remove(java.lang.Object o)
-
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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ValuesView
ValuesView(ConcurrentHashMapV8<K,V> map)
-
-
Method Detail
-
contains
public final boolean contains(java.lang.Object o)
-
remove
public final boolean remove(java.lang.Object o)
-
iterator
public final java.util.Iterator<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.
-
-