de.uplanet.lucy.server
Class SharedState

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.String,java.lang.Object>
          extended by de.uplanet.lucy.server.SharedState
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public final class SharedState
extends java.util.HashMap<java.lang.String,java.lang.Object>

Version:
$Revision: 75517 $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
SharedState()
           
 
Method Summary
 boolean containsKey(java.lang.Object p_key)
           
 java.lang.Object get(java.lang.Object p_key)
           
 java.lang.Object get(java.lang.String p_strKey, java.lang.Object p_objFallback)
          Get an object from the shared state.
 java.lang.Object put(java.lang.String p_key, java.lang.Object p_value)
           
 java.lang.Object remove(java.lang.Object p_key)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsValue, entrySet, isEmpty, keySet, putAll, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

SharedState

public SharedState()
Method Detail

get

public java.lang.Object get(java.lang.Object p_key)
Specified by:
get in interface java.util.Map<java.lang.String,java.lang.Object>
Overrides:
get in class java.util.HashMap<java.lang.String,java.lang.Object>

containsKey

public boolean containsKey(java.lang.Object p_key)
Specified by:
containsKey in interface java.util.Map<java.lang.String,java.lang.Object>
Overrides:
containsKey in class java.util.HashMap<java.lang.String,java.lang.Object>

put

public java.lang.Object put(java.lang.String p_key,
                            java.lang.Object p_value)
Specified by:
put in interface java.util.Map<java.lang.String,java.lang.Object>
Overrides:
put in class java.util.HashMap<java.lang.String,java.lang.Object>

remove

public java.lang.Object remove(java.lang.Object p_key)
Specified by:
remove in interface java.util.Map<java.lang.String,java.lang.Object>
Overrides:
remove in class java.util.HashMap<java.lang.String,java.lang.Object>

get

public java.lang.Object get(java.lang.String p_strKey,
                            java.lang.Object p_objFallback)
Get an object from the shared state.

If the key does not exist in the shared state, the given fallback will be returned instead.

Parameters:
p_strKey - The key.
p_objFallback - The value that will be returned if the given key does not exist in the shared state.
Returns:
The value, or the fallback value.


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.