public class DefaultContextualPredicate
extends java.lang.Object
DynamicContextualProperty
) which takes a Function to get the value of
key included in the JSON blob as the input string value of DynamicContextualProperty
.Modifier and Type | Field and Description |
---|---|
static DefaultContextualPredicate |
PROPERTY_BASED |
Constructor and Description |
---|
DefaultContextualPredicate(<any> getValueFromKeyFunction) |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> input)
For each key in the passed in map, this function returns true if
the value derived from the key using the function (passed in from the constructor) matches any of the value included for the same key in the map
the above holds true for all keys in the map
|
public static final DefaultContextualPredicate PROPERTY_BASED
public DefaultContextualPredicate(<any> getValueFromKeyFunction)
public boolean apply(java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> input)