| 
 | ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.util.concurrent.ConcurrentHashMap.KeySetView<K,V>
public static class ConcurrentHashMap.KeySetView<K,V>
A view of a ConcurrentHashMap as a Set of keys, in
 which additions may optionally be enabled by mapping to a
 common value.  This class cannot be directly instantiated. See
 ConcurrentHashMap.keySet, ConcurrentHashMap.keySet(Object), ConcurrentHashMap.newKeySet(),
 ConcurrentHashMap.newKeySet(int).
| Method Summary | ||
|---|---|---|
|  boolean | add(K e) | |
|  boolean | addAll(Collection<? extends K> 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. | |
|  V | getMappedValue()Returns the default mapped value for additions, or nullif additions are not supported. | |
|  int | hashCode() | |
|  boolean | isEmpty() | |
|  Iterator<K> | 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() | |
| 
 | toArray(T[] a) | |
|  String | toString() | |
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface java.util.Set | 
|---|
| clear, containsAll, hashCode, isEmpty, removeAll, retainAll, size, toArray, toArray | 
| Method Detail | 
|---|
public V getMappedValue()
null if additions are not supported.
null
 if not supported.public boolean contains(Object o)
contains in interface Collection<K>contains in interface Set<K>public boolean remove(Object o)
remove in interface Collection<K>remove in interface Set<K>public Iterator<K> 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.
iterator in interface Iterable<K>iterator in interface Collection<K>iterator in interface Set<K>public boolean add(K e)
add in interface Collection<K>add in interface Set<K>public boolean addAll(Collection<? extends K> c)
addAll in interface Collection<K>addAll in interface Set<K>public boolean equals(Object o)
equals in interface Collection<K>equals in interface Set<K>equals in class Objectpublic 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 int hashCode()
hashCode in class Objectpublic final String toString()
toString in class Objectpublic final boolean containsAll(Collection<?> c)
public final boolean removeAll(Collection<?> c)
public final boolean retainAll(Collection<?> c)
| 
 | ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||