Class MapSearchContext
- java.lang.Object
-
- org.forgerock.openam.entitlement.utils.indextree.nodecontext.MapSearchContext
-
- All Implemented Interfaces:
SearchContext
public class MapSearchContext extends Object implements SearchContext
Map backed implementation of the SearchContext.- Author:
- andrew.forrest@forgerock.com
-
-
Constructor Summary
Constructors Constructor Description MapSearchContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> voidadd(ContextKey<T> key, T value)Add data to the context.<T> Tget(ContextKey<T> key)Get data from the context.booleanhas(ContextKey<?> key)Whether the context contains data with the associated with the key.voidremove(ContextKey<?> key)Removes data from the context.
-
-
-
Method Detail
-
add
public <T> void add(ContextKey<T> key, T value)
Description copied from interface:SearchContextAdd data to the context.- Specified by:
addin interfaceSearchContext- Type Parameters:
T- The value type.- Parameters:
key- The key.value- The value.
-
get
public <T> T get(ContextKey<T> key)
Description copied from interface:SearchContextGet data from the context.- Specified by:
getin interfaceSearchContext- Type Parameters:
T- The value type.- Parameters:
key- The key for which to extract data.- Returns:
- The value associated with the key.
-
has
public boolean has(ContextKey<?> key)
Description copied from interface:SearchContextWhether the context contains data with the associated with the key.- Specified by:
hasin interfaceSearchContext- Parameters:
key- The key.- Returns:
- Whether data exists for the given key.
-
remove
public void remove(ContextKey<?> key)
Description copied from interface:SearchContextRemoves data from the context.- Specified by:
removein interfaceSearchContext- Parameters:
key- The key.
-
-