Save This Page
Home » commons-chain-1.2-src » org.apache.commons » chain » web » [javadoc | source]
org.apache.commons.chain.web
public class: MapEntry [javadoc | source]
java.lang.Object
   org.apache.commons.chain.web.MapEntry

All Implemented Interfaces:
    Map$Entry

Map.Entry implementation that can be constructed to either be read-only or not.

Constructor:
 public MapEntry(Object key,
    Object value,
    boolean modifiable) 

    Creates a map entry that can either allow modifications or not.

    Parameters:
    key - The entry key
    value - The entry value
    modifiable - Whether the entry should allow modification or not
Method from org.apache.commons.chain.web.MapEntry Summary:
equals,   getKey,   getValue,   hashCode,   setValue
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.chain.web.MapEntry Detail:
 public boolean equals(Object o) 

    Determines if this entry is equal to the passed object.

 public Object getKey() 

    Gets the entry key.

 public Object getValue() 

    Gets the entry value.

 public int hashCode() 

    Returns the hashcode for this entry.

 public Object setValue(Object val) 

    Sets the entry value if the entry can be modified.