public class BooleanOperationContributor extends OperationContributor
cachedMethodNames| Constructor and Description |
|---|
BooleanOperationContributor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
and(boolean operand) |
String |
asString() |
boolean |
contributesTo(Object target) |
protected Boolean |
getTarget() |
boolean |
not() |
boolean |
or(boolean operand) |
Object |
ternary(Supplier<?> sIfTrue,
Supplier<?> sIfFalse)
Lazy functional-style ternary operation.
|
boolean |
xor(boolean operand) |
findContributedMethodForEvaluatedParameters, findContributedMethodForEvaluatedParameters, findContributedMethodForUnevaluatedParameters, getContext, getReflectionTarget, includeInheritedMethods, setContext, setTargetpublic boolean contributesTo(Object target)
contributesTo in class OperationContributorprotected Boolean getTarget()
getTarget in class OperationContributorOperationContributor.target field.public boolean or(boolean operand)
public boolean and(boolean operand)
public boolean not()
public boolean xor(boolean operand)
public String asString()
public Object ternary(Supplier<?> sIfTrue, Supplier<?> sIfFalse)
sIfTrue - Value getter if the target is truesIfFalse - Value getter if the target is falseCopyright © 2020. All rights reserved.