public static final class ConcurrentHashMap.EntrySetView<K,V> extends Object implements Set<Map.Entry<K,V>>
Set of (key, value)
entries. This class cannot be directly instantiated. See
ConcurrentHashMap.entrySet.| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Map.Entry<K,V> e) |
boolean |
addAll(Collection<? extends Map.Entry<K,V>> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
ConcurrentHashMap<K,V> |
getMap()
Returns the map backing this view.
|
int |
hashCode() |
boolean |
isEmpty() |
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) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, containsAll, hashCode, isEmpty, removeAll, retainAll, size, spliterator, toArray, toArrayparallelStream, removeIf, streampublic final boolean contains(Object o)
public final boolean remove(Object o)
public final Iterator<Map.Entry<K,V>> iterator()
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.public final boolean addAll(Collection<? extends Map.Entry<K,V>> c)
public boolean equals(Object o)
public ConcurrentHashMap<K,V> getMap()
public final int size()
public final boolean isEmpty()
public final void clear()
public final Object[] toArray()
public final <T> T[] toArray(T[] a)
public final boolean containsAll(Collection<?> c)
public final boolean removeAll(Collection<?> c)
public final boolean retainAll(Collection<?> c)
Copyright 2001-2021, Terracotta, Inc.