|
|
@ -43,20 +43,10 @@ public interface Condition {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* A NoOp {@link Condition} that always returns false.
|
|
|
|
* A NoOp {@link Condition} that always returns false.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
Condition FALSE = new Condition() {
|
|
|
|
Condition FALSE = facts -> false;
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public boolean evaluate(Facts facts) {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* A NoOp {@link Condition} that always returns true.
|
|
|
|
* A NoOp {@link Condition} that always returns true.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
Condition TRUE = new Condition() {
|
|
|
|
Condition TRUE = facts -> true;
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public boolean evaluate(Facts facts) {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|