public interface Condition extends Sorted
Condition| 限定符和类型 | 方法和说明 |
|---|---|
default Condition |
and(Condition other)
Returns a composed condition that represents a short-circuiting logical AND of this condition and another.
|
default ConditionType |
getType()
Get the type of multi conditions.
|
default Condition |
negate()
Returns a condition that represents the logical negation of this condition.
|
default Condition |
or(Condition other)
Returns a composed condition that represents a short-circuiting logical OR of this condition and another.
|
boolean |
test(Object target,
KeyTriggerOperation operation)
Whether the operation should be applied to the target.
|
default ConditionType getType()
boolean test(Object target, KeyTriggerOperation operation)
target - the target to be checkedoperation - the operation to be checkeddefault Condition and(Condition other)
other - a condition that will be logical-AND with this conditiondefault Condition or(Condition other)
other - a condition that will be logical-OR with this conditiondefault Condition negate()
Copyright © 2024. All rights reserved.