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, setTarget
public boolean contributesTo(Object target)
contributesTo
in class OperationContributor
protected Boolean getTarget()
getTarget
in class OperationContributor
OperationContributor.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 true
sIfFalse
- Value getter if the target is false
Copyright © 2020. All rights reserved.