Class ConcurrentHashMapV8.EntrySetView<K,V>
- java.lang.Object
-
- org.glassfish.jersey.internal.util.collection.ConcurrentHashMapV8.CollectionView<K,V,java.util.Map.Entry<K,V>>
-
- org.glassfish.jersey.internal.util.collection.ConcurrentHashMapV8.EntrySetView<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<java.util.Map.Entry<K,V>>
,java.util.Collection<java.util.Map.Entry<K,V>>
,java.util.Set<java.util.Map.Entry<K,V>>
- Enclosing class:
- ConcurrentHashMapV8<K,V>
static final class ConcurrentHashMapV8.EntrySetView<K,V> extends ConcurrentHashMapV8.CollectionView<K,V,java.util.Map.Entry<K,V>> implements java.util.Set<java.util.Map.Entry<K,V>>, java.io.Serializable
A view of a ConcurrentHashMapV8 as aSet
of (key, value) entries. This class cannot be directly instantiated. SeeConcurrentHashMapV8.entrySet()
.
-
-
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 EntrySetView(ConcurrentHashMapV8<K,V> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(java.util.Map.Entry<K,V> e)
boolean
addAll(java.util.Collection<? extends java.util.Map.Entry<K,V>> c)
boolean
contains(java.lang.Object o)
boolean
equals(java.lang.Object o)
int
hashCode()
java.util.Iterator<java.util.Map.Entry<K,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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EntrySetView
EntrySetView(ConcurrentHashMapV8<K,V> map)
-
-
Method Detail
-
contains
public boolean contains(java.lang.Object o)
-
remove
public boolean remove(java.lang.Object o)
-
iterator
public java.util.Iterator<java.util.Map.Entry<K,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.- Specified by:
iterator
in interfacejava.util.Collection<K>
- Specified by:
iterator
in interfacejava.lang.Iterable<K>
- Specified by:
iterator
in interfacejava.util.Set<K>
- Specified by:
iterator
in classConcurrentHashMapV8.CollectionView<K,V,java.util.Map.Entry<K,V>>
- Returns:
- an iterator over the entries of the backing map
-
hashCode
public final int hashCode()
-
-