com.caucho.quercus.env
Class ChainedMap<K,V>

java.lang.Object
  extended by com.caucho.quercus.env.ChainedMap<K,V>
All Implemented Interfaces:
VarMap<K,V>

public class ChainedMap<K,V>
extends java.lang.Object
implements VarMap<K,V>

Represents a PHP chained map


Constructor Summary
ChainedMap(VarMap<K,V> next)
           
ChainedMap(VarMap<K,V> next, java.util.Map<K,V> map)
           
 
Method Summary
 V get(K key)
          Gets a value.
 void put(K key, V value)
          Sets the value
 V remove(K key)
          Remove the value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainedMap

public ChainedMap(VarMap<K,V> next,
                  java.util.Map<K,V> map)

ChainedMap

public ChainedMap(VarMap<K,V> next)
Method Detail

put

public void put(K key,
                V value)
Sets the value

Specified by:
put in interface VarMap<K,V>

remove

public V remove(K key)
Remove the value

Specified by:
remove in interface VarMap<K,V>

get

public V get(K key)
Gets a value.

Specified by:
get in interface VarMap<K,V>