public static final class ConcurrentHashMapV8.ValuesView<K,V> extends Object implements Collection<V>
Collection of
values, in which additions are disabled. This class cannot be
directly instantiated. See ConcurrentHashMapV8.values().
The view's iterator is 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.
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(V e) |
boolean |
addAll(Collection<? extends V> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
ConcurrentHashMapV8<K,V> |
getMap()
Returns the map backing this view.
|
int |
hashCode() |
boolean |
isEmpty() |
Iterator<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() |
public final boolean contains(Object o)
contains in interface Collection<V>public final boolean remove(Object o)
remove in interface Collection<V>public final Iterator<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 add(V e)
add in interface Collection<V>public final boolean addAll(Collection<? extends V> c)
addAll in interface Collection<V>public ConcurrentHashMapV8<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 © 2008-2013 The Netty Project. All Rights Reserved.