Class MapEntry<T>

java.lang.Object
org.apache.commons.chain.web.MapEntry<T>
Type Parameters:
T - type of the value
All Implemented Interfaces:
Map.Entry<String,T>

public class MapEntry<T> extends Object implements Map.Entry<String,T>
Map.Entry implementation that can be constructed to either be read-only or not.
Version:
$Revision$ $Date$
  • Constructor Summary

    Constructors
    Constructor
    Description
    MapEntry(String key, T value, boolean modifiable)
    Creates a map entry that can either allow modifications or not.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Determines if this entry is equal to the passed object.
    Gets the entry key.
    Gets the entry value.
    int
    Returns the hashcode for this entry.
    setValue(T val)
    Sets the entry value if the entry can be modified.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MapEntry

      public MapEntry(String key, T 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 Details