Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.Object> |
entries
Stores the context entries.
|
Constructor and Description |
---|
DefaultContext() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String key,
java.lang.Object value)
Adds a context entry.
|
java.lang.Object |
get(java.lang.String key)
Searches for the value with the specified attribute key in this context.
|
com.google.common.collect.ImmutableCollection<java.lang.String> |
getAttributeNames()
Returns the names of all attributes of this context.
|
private final java.util.Map<java.lang.String,java.lang.Object> entries
public java.lang.Object get(java.lang.String key)
Context
public com.google.common.collect.ImmutableCollection<java.lang.String> getAttributeNames()
Context
getAttributeNames
in interface Context
public void add(java.lang.String key, java.lang.Object value)
key
- the context keyvalue
- the value for key