static final class ConcurrentHashMapV8.EntrySetView<K,V> extends ConcurrentHashMapV8.CollectionView<K,V,Map.Entry<K,V>> implements Set<Map.Entry<K,V>>, Serializable
Set
of (key, value)
entries. This class cannot be directly instantiated. See
ConcurrentHashMapV8.entrySet()
.map
Constructor and Description |
---|
EntrySetView(ConcurrentHashMapV8<K,V> map) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Map.Entry<K,V> e) |
boolean |
addAll(Collection<? extends Map.Entry<K,V>> c) |
boolean |
contains(Object o) |
boolean |
equals(Object o) |
void |
forEach(ConcurrentHashMapV8.Action<? super Map.Entry<K,V>> action) |
int |
hashCode() |
Iterator<Map.Entry<K,V>> |
iterator()
Returns a "weakly consistent" iterator that will never
throw
ConcurrentModificationException , 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(Object o) |
clear, containsAll, getMap, isEmpty, removeAll, retainAll, size, toArray, toArray, toString
EntrySetView(ConcurrentHashMapV8<K,V> map)
public boolean contains(Object o)
public boolean remove(Object o)
public Iterator<Map.Entry<K,V>> iterator()
ConcurrentHashMapV8.CollectionView
ConcurrentModificationException
, 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.iterator
in interface Iterable<Map.Entry<K,V>>
iterator
in interface Collection<Map.Entry<K,V>>
iterator
in interface Set<Map.Entry<K,V>>
iterator
in class ConcurrentHashMapV8.CollectionView<K,V,Map.Entry<K,V>>
public final int hashCode()
public final boolean equals(Object o)
public void forEach(ConcurrentHashMapV8.Action<? super Map.Entry<K,V>> action)
Copyright © 2010-2020 Toolsverse. All Rights Reserved.