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 aSetof (key, value) entries. This class cannot be directly instantiated. SeeConcurrentHashMapV8.entrySet().
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID-
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 booleanadd(java.util.Map.Entry<K,V> e)booleanaddAll(java.util.Collection<? extends java.util.Map.Entry<K,V>> c)booleancontains(java.lang.Object o)booleanequals(java.lang.Object o)inthashCode()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.booleanremove(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.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.- Specified by:
iteratorin interfacejava.util.Collection<K>- Specified by:
iteratorin interfacejava.lang.Iterable<K>- Specified by:
iteratorin interfacejava.util.Set<K>- Specified by:
iteratorin 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()
-
-