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

All Implemented Interfaces:
    Entry

This "wrapper class" serves two purposes: it prevents the client from modifying the backing Map, by short-circuiting the setValue method, and it protects the backing Map against an ill-behaved Map.Entry that attempts to modify another Map Entry when asked to perform an equality check.
Constructor:
 UnmodifiableEntry(Entry<? extends K, ? extends V> e) 
Method from java.util.Collections$UnmodifiableMap$UnmodifiableEntrySet$UnmodifiableEntry Summary:
equals,   getKey,   getValue,   hashCode,   setValue,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.util.Collections$UnmodifiableMap$UnmodifiableEntrySet$UnmodifiableEntry Detail:
 public boolean equals(Object o) 
 public K getKey() 
 public V getValue() 
 public int hashCode() 
 public V setValue(V value) 
 public String toString()