abstract static class EquivalentConcurrentHashMapV8.CollectionView<K,V,E>
extends java.lang.Object
implements java.util.Collection<E>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
(package private) EquivalentConcurrentHashMapV8<K,V> |
map |
private static java.lang.String |
oomeMsg |
private static long |
serialVersionUID |
Constructor and Description |
---|
EquivalentConcurrentHashMapV8.CollectionView(EquivalentConcurrentHashMapV8<K,V> map) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all of the elements from this view, by removing all
the mappings from the map backing this view.
|
abstract boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
EquivalentConcurrentHashMapV8<K,V> |
getMap()
Returns the map backing this view.
|
boolean |
isEmpty() |
abstract java.util.Iterator<E> |
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. |
abstract boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
java.lang.String |
toString()
Returns a string representation of this collection.
|
private static final long serialVersionUID
final EquivalentConcurrentHashMapV8<K,V> map
private static final java.lang.String oomeMsg
EquivalentConcurrentHashMapV8.CollectionView(EquivalentConcurrentHashMapV8<K,V> map)
public EquivalentConcurrentHashMapV8<K,V> getMap()
public final void clear()
clear
in interface java.util.Collection<E>
public final int size()
size
in interface java.util.Collection<E>
public final boolean isEmpty()
isEmpty
in interface java.util.Collection<E>
public abstract java.util.Iterator<E> 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 abstract boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<E>
public abstract boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<E>
public final java.lang.Object[] toArray()
toArray
in interface java.util.Collection<E>
public final <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<E>
public final java.lang.String toString()
"[]"
).
Adjacent elements are separated by the characters ", "
(comma and space). Elements are converted to strings as by
String.valueOf(Object)
.toString
in class java.lang.Object
public final boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<E>
public final boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<E>
public final boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<E>