public class ConstantEqualsCheckFilter extends CriteriaFilter
Object#equals()
operand2
.CriteriaFilter.transform(Object)
and Not equals; it will throw a ContinueProcessingException
else return the input if it succeeds in transformation.Constructor and Description |
---|
ConstantEqualsCheckFilter() |
ConstantEqualsCheckFilter(Object operand,
Object operand2) |
ConstantEqualsCheckFilter(Object operand,
Object operand2,
boolean equals) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkCriteria(Object input)
Checks the business logic against which the Predicate will succeed (response as true) or fail (false).
|
Object |
getOperand()
|
Object |
getOperand2()
An Optional input; if supplied will ignore the provided ignore and compare against this
If null will be ignored |
boolean |
isEquals()
If false will convert this Equals to Not-Equals (inverse condition)
|
boolean |
isOperandEqualsOperand2()
|
void |
setEquals(boolean equals)
If false will convert this Equals to Not-Equals (inverse condition)
|
void |
setOperand(Object operand)
|
void |
setOperand2(Object operand2)
An Optional input; if supplied will ignore the provided ignore and compare against this
If null will be ignored |
void |
setOperandEqualsOperand2(boolean operandEqualsOperand2)
|
evaluate, getErrorMsg, setErrorMsg, test, transform
public Object getOperand()
public void setOperand(Object operand)
public boolean isEquals()
public void setEquals(boolean equals)
public Object getOperand2()
public void setOperand2(Object operand2)
public boolean isOperandEqualsOperand2()
public void setOperandEqualsOperand2(boolean operandEqualsOperand2)
protected boolean checkCriteria(Object input) throws ContinueProcessingException, BreakChainException, Exception
CriteriaFilter
ContinueProcessingException
.
Exception
type.checkCriteria
in class CriteriaFilter
ContinueProcessingException
- skipping further record processingBreakChainException
- for explained business logic failed conditionsException
- for any serious ErrorCopyright © 2018. All rights reserved.