Save This Page
Home » commons-collections-3.2.1-src » org.apache.commons » collections » keyvalue » [javadoc | source]
org.apache.commons.collections.keyvalue
abstract public class: AbstractMapEntry [javadoc | source]
java.lang.Object
   org.apache.commons.collections.keyvalue.AbstractKeyValue
      org.apache.commons.collections.keyvalue.AbstractMapEntry

All Implemented Interfaces:
    Map$Entry, KeyValue

Direct Known Subclasses:
    ListOrderedMapEntry, MyMapEntry, DefaultMapEntry, UnmodifiableMapEntry

Abstract Pair class to assist with creating correct Map.Entry implementations.
Fields inherited from org.apache.commons.collections.keyvalue.AbstractKeyValue:
key,  value
Constructor:
 protected AbstractMapEntry(Object key,
    Object value) 
    Constructs a new entry with the given key and given value.
    Parameters:
    key - the key for the entry, may be null
    value - the value for the entry, may be null
Method from org.apache.commons.collections.keyvalue.AbstractMapEntry Summary:
equals,   hashCode,   setValue
Methods from org.apache.commons.collections.keyvalue.AbstractKeyValue:
getKey,   getValue,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.collections.keyvalue.AbstractMapEntry Detail:
 public boolean equals(Object obj) 
 public int hashCode() 
 public Object setValue(Object value) 
    Sets the value stored in this Map.Entry.

    This Map.Entry is not connected to a Map, so only the local data is changed.