public interface ComponentContext<C extends ComponentContext<C>>
| Modifier and Type | Method and Description | 
|---|---|
| boolean | containsKey(Object key)Check if a context contains a key. | 
| static <C extends ComponentContext<C>> | empty()Gets an empty context. | 
| <T> T | get(Object key)Gets a value from a context. | 
| <T> T | get(Object key,
   Class<T> type)Gets a value from a context with a given type to get cast to. | 
| ComponentContext<C> | put(Object key,
   Object value)Put an entry into a context. | 
| Stream<Map.Entry<Object,Object>> | stream()Stream key/value pairs from this  ComponentContext | 
| Map<String,Object> | toTemplateModel()Gets context values as a map. | 
static <C extends ComponentContext<C>> ComponentContext<C> empty()
C - the type of context<T> T get(Object key)
T - the type of contextkey - the key<T> T get(Object key, Class<T> type)
T - the type of contextkey - the keytype - the class typeboolean containsKey(Object key)
key - the keyComponentContext<C> put(Object key, Object value)
key - the entry keyvalue - the entry valueStream<Map.Entry<Object,Object>> stream()
ComponentContextStream of key/value pairs held by this contextCopyright © 2023. All rights reserved.