public class MutableContext extends Object implements EvaluationContext
TARGETING_KEY| Constructor and Description |
|---|
MutableContext() |
MutableContext(Map<String,Value> attributes) |
MutableContext(String targetingKey) |
MutableContext(String targetingKey,
Map<String,Value> attributes)
Create a mutable context with given targetingKey and attributes provided.
|
| Modifier and Type | Method and Description |
|---|---|
MutableContext |
add(String key,
Boolean value) |
MutableContext |
add(String key,
Double value) |
MutableContext |
add(String key,
Instant value) |
MutableContext |
add(String key,
Integer value) |
MutableContext |
add(String key,
List<Value> value) |
MutableContext |
add(String key,
String value) |
MutableContext |
add(String key,
Structure value) |
String |
getTargetingKey()
Retrieve targetingKey from the context.
|
EvaluationContext |
merge(EvaluationContext overridingContext)
Merges this EvaluationContext objects with the second overriding the in case of conflict.
|
MutableContext |
setTargetingKey(String targetingKey)
Override or set targeting key for this mutable context.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasMap, asObjectMap, convertValue, getValue, keySet, mapToStructure, mergepublic MutableContext()
public MutableContext(String targetingKey)
public MutableContext(String targetingKey, Map<String,Value> attributes)
targetingKey - targeting keyattributes - evaluation context attributespublic MutableContext add(String key, Boolean value)
public MutableContext add(String key, String value)
public MutableContext add(String key, Integer value)
public MutableContext add(String key, Double value)
public MutableContext add(String key, Instant value)
public MutableContext add(String key, Structure value)
public MutableContext add(String key, List<Value> value)
public MutableContext setTargetingKey(String targetingKey)
public String getTargetingKey()
getTargetingKey in interface EvaluationContextpublic EvaluationContext merge(EvaluationContext overridingContext)
merge in interface EvaluationContextoverridingContext - overriding contextCopyright © 2024. All rights reserved.