Interface RuleContext
-
public interface RuleContextSimple key-value store for active rule data.Mutator methods are on individual
Ruletypes.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> TcomputeIfAbsent(java.lang.String key, java.util.function.Function<java.lang.String,T> valueComputer)static RuleContextcreate()Create an empty, mutable rule context.<T> java.util.Optional<T>get(java.lang.String key)voidput(java.lang.String key, java.lang.Object value)
-
-
-
Method Detail
-
create
static RuleContext create()
Create an empty, mutable rule context.- Returns:
- the new rule context
-
get
<T> java.util.Optional<T> get(java.lang.String key)
-
put
void put(java.lang.String key, java.lang.Object value)
-
computeIfAbsent
<T> T computeIfAbsent(java.lang.String key, java.util.function.Function<java.lang.String,T> valueComputer)
-
-