Home » openjdk-7 » java » util » [javadoc | source]
java.util
static class: Collections.CheckedMap.CheckedEntrySet [javadoc | source]
java.lang.Object
   java.util.Collections$CheckedMap$CheckedEntrySet

All Implemented Interfaces:
    Set

We need this class in addition to CheckedSet as Map.Entry permits modification of the backing Map via the setValue operation. This class is subtle: there are many possible attacks that must be thwarted.
Constructor:
 CheckedEntrySet(Set<K, V> s,
    Class<V> valueType) 
Method from java.util.Collections$CheckedMap$CheckedEntrySet Summary:
add,   addAll,   checkedEntry,   clear,   contains,   containsAll,   equals,   hashCode,   isEmpty,   iterator,   remove,   removeAll,   retainAll,   size,   toArray,   toArray,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.util.Collections$CheckedMap$CheckedEntrySet Detail:
 public boolean add(Entry<K, V> e) 
 public boolean addAll(Collection<Entry> coll) 
 static CheckedEntry<K, V, T> checkedEntry(Entry<K, V> e,
    Class<T> valueType) 
 public  void clear() 
 public boolean contains(Object o) 
    This method is overridden to protect the backing set against an object with a nefarious equals function that senses that the equality-candidate is Map.Entry and calls its setValue method.
 public boolean containsAll(Collection<?> c) 
    The bulk collection methods are overridden to protect against an unscrupulous collection whose contains(Object o) method senses when o is a Map.Entry, and calls o.setValue.
 public boolean equals(Object o) 
 public int hashCode() 
 public boolean isEmpty() 
 public Iterator<K, V> iterator() 
 public boolean remove(Object o) 
 public boolean removeAll(Collection<?> c) 
 public boolean retainAll(Collection<?> c) 
 public int size() 
 public Object[] toArray() 
 public T[] toArray(T[] a) 
 public String toString()