public class VariableOperandImpl extends Object implements VariableOperand
Default implementation of the VariableOperand
interface.
Modifier and Type | Class and Description |
---|---|
static class |
VariableOperandImpl.NotNullValue
marker class for not null object value predicates.
|
Constructor and Description |
---|
VariableOperandImpl() |
Modifier and Type | Method and Description |
---|---|
BooleanOperand<Boolean> |
booleanValue()
Returns an operand to build predicates for the value part of variables.
|
NumberOperand<Double> |
doubleValue()
Returns an operand to build predicates for the value part of variables.
|
NumberOperand<Long> |
longValue()
Returns an operand to build predicates for the value part of variables.
|
StringOperand<String> |
name()
Returns an operand to build predicates for the name part of variables.
|
Predicate |
nameAndValueEq(String expectedName,
Object expectedValue)
Returns a predicate to check for variables with the given name and value.
|
<V> Predicate |
nameAndValueEq(ValueAccessor<V> expectedVariableName,
V expectedValue)
Returns a predicate to check for variables with the given name and value.
|
StringOperand<String> |
stringValue()
Returns an operand to build predicates for the value part of variables.
|
TimestampOperand<Instant> |
timestampValue()
Returns an operand to build predicates for the value part of variables.
|
Predicate |
undefined(String variableName)
Returns an undefined variable predicate.
|
Predicate |
undefined(ValueAccessor<?> variableName)
Returns undefined variable predicate.
|
Predicate |
valueIsNotNull()
Returns a predicate to check that the variable value is null, irrespective of the value type.
|
Predicate |
valueIsNull()
Returns a predicate to check that the variable value is null, irrespective of the value type.
|
public StringOperand<String> name()
VariableOperand
Returns an operand to build predicates for the name part of variables.
name
in interface VariableOperand
public Predicate undefined(String variableName)
VariableOperand
Returns an undefined variable predicate.
undefined
in interface VariableOperand
variableName
- the variable namepublic Predicate undefined(ValueAccessor<?> variableName)
VariableOperand
Returns undefined variable predicate.
undefined
in interface VariableOperand
variableName
- the variable accessorpublic StringOperand<String> stringValue()
VariableOperand
Returns an operand to build predicates for the value part of variables.
The operand is specific to string values.
stringValue
in interface VariableOperand
public TimestampOperand<Instant> timestampValue()
VariableOperand
Returns an operand to build predicates for the value part of variables.
The operand is specific to timestamp values.
timestampValue
in interface VariableOperand
public BooleanOperand<Boolean> booleanValue()
VariableOperand
Returns an operand to build predicates for the value part of variables.
The operand is specific to boolean values.
booleanValue
in interface VariableOperand
public NumberOperand<Long> longValue()
VariableOperand
Returns an operand to build predicates for the value part of variables.
The operand is specific to long values.
longValue
in interface VariableOperand
public NumberOperand<Double> doubleValue()
VariableOperand
Returns an operand to build predicates for the value part of variables.
The operand is specific to double values.
doubleValue
in interface VariableOperand
public Predicate valueIsNull()
VariableOperand
Returns a predicate to check that the variable value is null, irrespective of the value type.
Do not use this predicate with Predicate.not()
method. Use VariableOperand.valueIsNotNull()
instead.
valueIsNull
in interface VariableOperand
public Predicate valueIsNotNull()
VariableOperand
Returns a predicate to check that the variable value is null, irrespective of the value type.
Do not use this predicate with Predicate.not()
method. Use VariableOperand.valueIsNull()
instead.
*
valueIsNotNull
in interface VariableOperand
public <V> Predicate nameAndValueEq(ValueAccessor<V> expectedVariableName, V expectedValue)
VariableOperand
Returns a predicate to check for variables with the given name and value.
nameAndValueEq
in interface VariableOperand
V
- the type of the variable valueexpectedVariableName
- the expected variable accessorexpectedValue
- the expected variable valuepublic Predicate nameAndValueEq(String expectedName, Object expectedValue)
VariableOperand
Returns a predicate to check for variables with the given name and value.
nameAndValueEq
in interface VariableOperand
expectedName
- the expected variable nameexpectedValue
- the expected variable valueCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.