public class Namespace extends Object
The purpose of a namespace is to pass non-argument data to commands such as current session data and so on.
| Constructor and Description |
|---|
Namespace() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object key)
Test whether the given key exists.
|
boolean |
containsValue(Object value)
Test whether the given value exists.
|
<T> T |
get(Class<T> key)
Get an object whose key will be the object's class.
|
Object |
get(Object key)
Returns the value specified by the given key.
|
Object |
put(Object key,
Object value)
Set an contextual value.
|
public boolean containsKey(Object key)
key - The keypublic boolean containsValue(Object value)
value - The value@Nullable public Object get(Object key)
key - The key@Nullable public <T> T get(Class<T> key)
T - The type of objectkey - The key@Nullable public Object put(Object key, Object value)
key - Key with which the specified value is to be associatedvalue - Value to be associated with the specified keyUnsupportedOperationException - if the put operation
is not supported by this mapClassCastException - if the class of the specified key or value
prevents it from being stored in this mapCopyright © 2015. All Rights Reserved.