public class BaseComponentContext<C extends ComponentContext<C>> extends LinkedHashMap<Object,Object> implements ComponentContext<C>
ComponentContext.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description | 
|---|
| BaseComponentContext() | 
| Modifier and Type | Method and Description | 
|---|---|
| Object | 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. | 
clear, containsValue, entrySet, forEach, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsKey, emptycompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic Object get(Object key)
ComponentContextget in interface Map<Object,Object>get in interface ComponentContext<C extends ComponentContext<C>>get in class LinkedHashMap<Object,Object>key - the keypublic <T> T get(Object key, Class<T> type)
ComponentContextget in interface ComponentContext<C extends ComponentContext<C>>T - the type of contextkey - the keytype - the class typepublic ComponentContext<C> put(Object key, Object value)
ComponentContextpublic Stream<Map.Entry<Object,Object>> stream()
ComponentContextComponentContextstream in interface ComponentContext<C extends ComponentContext<C>>Stream of key/value pairs held by this contextpublic Map<String,Object> toTemplateModel()
ComponentContexttoTemplateModel in interface ComponentContext<C extends ComponentContext<C>>Copyright © 2022. All rights reserved.