abstract static class ConcurrentHashMapV8.CollectionView<K,V,E>
extends Object
implements Collection<E>, Serializable
Modifier and Type | Field and Description |
---|---|
(package private) ConcurrentHashMapV8<K,V> |
map |
Constructor and Description |
---|
CollectionView(ConcurrentHashMapV8<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(Object o) |
boolean |
containsAll(Collection<?> c) |
ConcurrentHashMapV8<K,V> |
getMap()
Returns the map backing this view.
|
boolean |
isEmpty() |
abstract 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(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString()
Returns a string representation of this collection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
final ConcurrentHashMapV8<K,V> map
CollectionView(ConcurrentHashMapV8<K,V> map)
public ConcurrentHashMapV8<K,V> getMap()
public final void clear()
clear
in interface Collection<E>
public final int size()
size
in interface Collection<E>
public final boolean isEmpty()
isEmpty
in interface Collection<E>
public abstract 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(Object o)
contains
in interface Collection<E>
public abstract boolean remove(Object o)
remove
in interface Collection<E>
public final Object[] toArray()
toArray
in interface Collection<E>
public final <T> T[] toArray(T[] a)
toArray
in interface Collection<E>
public final 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 Object
public final boolean containsAll(Collection<?> c)
containsAll
in interface Collection<E>
public final boolean removeAll(Collection<?> c)
removeAll
in interface Collection<E>
public final boolean retainAll(Collection<?> c)
retainAll
in interface Collection<E>
Copyright © 2010-2020 Toolsverse. All Rights Reserved.