public class KiePMMLCompoundPredicate extends KiePMMLPredicate
| Modifier and Type | Class and Description |
|---|---|
static class |
KiePMMLCompoundPredicate.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected List<KiePMMLPredicate> |
kiePMMLPredicates |
protected BinaryOperator<Boolean> |
operatorFunction |
extensions, id, name, parentId| Modifier | Constructor and Description |
|---|---|
protected |
KiePMMLCompoundPredicate(String name,
List<KiePMMLExtension> extensions,
BOOLEAN_OPERATOR booleanOperator) |
| Modifier and Type | Method and Description |
|---|---|
static KiePMMLCompoundPredicate.Builder |
builder(List<KiePMMLExtension> extensions,
BOOLEAN_OPERATOR booleanOperator)
Builder to auto-generate the id
|
boolean |
equals(Object o) |
boolean |
evaluate(Map<String,Object> values)
Returns the evaluation of the given
values if the current KiePMMLPredicate or one of its
child is referred to inside the given values, otherwise false |
BOOLEAN_OPERATOR |
getBooleanOperator() |
String |
getId() |
List<KiePMMLPredicate> |
getKiePMMLPredicates() |
int |
hashCode() |
String |
toString() |
getExtensions, getName, getParentId, setParentIdprotected BinaryOperator<Boolean> operatorFunction
protected List<KiePMMLPredicate> kiePMMLPredicates
protected KiePMMLCompoundPredicate(String name, List<KiePMMLExtension> extensions, BOOLEAN_OPERATOR booleanOperator)
public static KiePMMLCompoundPredicate.Builder builder(List<KiePMMLExtension> extensions, BOOLEAN_OPERATOR booleanOperator)
public boolean evaluate(Map<String,Object> values)
KiePMMLPredicatevalues if the current KiePMMLPredicate or one of its
child is referred to inside the given values, otherwise falseevaluate in class KiePMMLPredicatepublic String getId()
getId in class AbstractKiePMMLComponentpublic BOOLEAN_OPERATOR getBooleanOperator()
public List<KiePMMLPredicate> getKiePMMLPredicates()
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.