public final class ImmutableContext extends Object implements EvaluationContext
| Constructor and Description |
|---|
ImmutableContext()
Create an immutable context with an empty targeting_key and attributes provided.
|
ImmutableContext(Map<String,Value> attributes)
Create an immutable context with an attributes provided.
|
ImmutableContext(String targetingKey)
Create an immutable context with given targeting_key provided.
|
ImmutableContext(String targetingKey,
Map<String,Value> attributes)
Create an immutable context with given targetingKey and attributes provided.
|
| Modifier and Type | Method and Description |
|---|---|
EvaluationContext |
merge(EvaluationContext overridingContext)
Merges this EvaluationContext object with the passed EvaluationContext, overriding in case of conflict.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTargetingKeyasMap, asObjectMap, convertValue, getValue, keySet, mapToStructure, mergepublic ImmutableContext()
public ImmutableContext(String targetingKey)
targetingKey - targeting keypublic ImmutableContext(Map<String,Value> attributes)
attributes - evaluation context attributespublic EvaluationContext merge(EvaluationContext overridingContext)
merge in interface EvaluationContextoverridingContext - overriding contextCopyright © 2023. All rights reserved.