public class BooleanFunction extends DefaultCondition<java.lang.Boolean>
It contains a DslField to get the value from the model, a BooleanFunctionMetadata to describe this node, and a
BiFunction to take the value from the model and return an optional value.
function, metadata| Constructor and Description |
|---|
BooleanFunction(DslField<java.lang.Boolean> field) |
BooleanFunction(PredicateMetadata metadata,
java.util.function.BiFunction<FieldModel,Context,java.util.Optional<java.lang.Boolean>> value) |
| Modifier and Type | Method and Description |
|---|---|
StepCondition |
and(boolean value)
Returns a step condition checking if the node value and the given value is true.
|
StepCondition |
and(LogicalFieldInfo value)
Returns a step condition checking if the node value and the given field value is true.
|
StepCondition |
isFalse()
Returns a step condition checking if the node value is false.
|
StepCondition |
isTrue()
Returns a step condition checking if the node value is true.
|
StepCondition |
not()
Returns a step condition checking if the node value is not true.
|
StepCondition |
or(boolean value)
Returns a step condition checking if the node value or the given value is true.
|
StepCondition |
or(LogicalFieldInfo value)
Returns a step condition checking if the node value or the given field value is true.
|
allMatch, allMatch, allMatch, anyMatch, anyMatch, eq, eq, eq, isNotNull, isNull, map, mapToInt, mapToString, mapUsing, noneMatch, noneMatch, noneMatch, notEq, notEq, notEq, position, tagsgetFunction, getMetadata, readable, value, valueModelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisUsing, markdown, markdown, readablepublic BooleanFunction(DslField<java.lang.Boolean> field)
public BooleanFunction(PredicateMetadata metadata, java.util.function.BiFunction<FieldModel,Context,java.util.Optional<java.lang.Boolean>> value)
public final StepCondition not()
public final StepCondition and(boolean value)
value - the right valuepublic final StepCondition and(LogicalFieldInfo value)
value - the right field valuepublic final StepCondition or(boolean value)
value - the right valuepublic final StepCondition or(LogicalFieldInfo value)
value - the right valuepublic final StepCondition isTrue()
public final StepCondition isFalse()