Class KiePMMLCompoundPredicate
- java.lang.Object
-
- org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent
-
- org.kie.pmml.commons.model.predicates.KiePMMLPredicate
-
- org.kie.pmml.commons.model.predicates.KiePMMLCompoundPredicate
-
- All Implemented Interfaces:
java.io.Serializable
public class KiePMMLCompoundPredicate extends KiePMMLPredicate
- See Also:
- CompoundPredicate, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKiePMMLCompoundPredicate.Builder
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<KiePMMLPredicate>kiePMMLPredicates-
Fields inherited from class org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent
extensions, id, name, parentId
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedKiePMMLCompoundPredicate(java.lang.String name, java.util.List<KiePMMLExtension> extensions, org.kie.pmml.api.enums.BOOLEAN_OPERATOR booleanOperator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KiePMMLCompoundPredicate.Builderbuilder(java.util.List<KiePMMLExtension> extensions, org.kie.pmml.api.enums.BOOLEAN_OPERATOR booleanOperator)Builder to auto-generate the idbooleanequals(java.lang.Object o)booleanevaluate(java.util.Map<java.lang.String,java.lang.Object> values)Returns the evaluation of the givenvaluesif the currentKiePMMLPredicateor one of its child is referred to inside the given values, otherwisefalseorg.kie.pmml.api.enums.BOOLEAN_OPERATORgetBooleanOperator()java.lang.StringgetId()java.util.List<KiePMMLPredicate>getKiePMMLPredicates()inthashCode()java.lang.StringtoString()-
Methods inherited from class org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent
getExtensions, getName, getParentId, setParentId
-
-
-
-
Field Detail
-
kiePMMLPredicates
protected java.util.List<KiePMMLPredicate> kiePMMLPredicates
-
-
Constructor Detail
-
KiePMMLCompoundPredicate
protected KiePMMLCompoundPredicate(java.lang.String name, java.util.List<KiePMMLExtension> extensions, org.kie.pmml.api.enums.BOOLEAN_OPERATOR booleanOperator)
-
-
Method Detail
-
builder
public static KiePMMLCompoundPredicate.Builder builder(java.util.List<KiePMMLExtension> extensions, org.kie.pmml.api.enums.BOOLEAN_OPERATOR booleanOperator)
Builder to auto-generate the id- Returns:
-
evaluate
public boolean evaluate(java.util.Map<java.lang.String,java.lang.Object> values)
Description copied from class:KiePMMLPredicateReturns the evaluation of the givenvaluesif the currentKiePMMLPredicateor one of its child is referred to inside the given values, otherwisefalse- Specified by:
evaluatein classKiePMMLPredicate- Returns:
-
getId
public java.lang.String getId()
- Overrides:
getIdin classAbstractKiePMMLComponent
-
getBooleanOperator
public org.kie.pmml.api.enums.BOOLEAN_OPERATOR getBooleanOperator()
-
getKiePMMLPredicates
public java.util.List<KiePMMLPredicate> getKiePMMLPredicates()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-