public interface Context
| Modifier and Type | Method and Description |
|---|---|
default <V> V |
get(java.lang.Class<V> key)
Returns the value of the attribute associated to the key.
|
<V> V |
get(java.lang.Object key)
Returns the value of the attribute associated to the key.
|
boolean |
hasKey(java.lang.Object key)
Returns
true if an attribute associated to the key exists, false otherwise. |
@Nullable <V> V get(java.lang.Object key)
V - the type of the value for the attributekey - the key for the attributenull if not available@Nullable default <V> V get(java.lang.Class<V> key)
V - the type of the value for the attributekey - the key for the attributenull if not available or not of the specified typeboolean hasKey(java.lang.Object key)
true if an attribute associated to the key exists, false otherwise.key - the key for the attributetrue if an attribute associated to the key exists, false otherwise