Use lambdas where appropriate

pull/271/head
Mahmoud Ben Hassine 5 years ago
parent ec69030736
commit ed1ae49865
No known key found for this signature in database
GPG Key ID: 79FCFB0A184E0036

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

Loading…
Cancel
Save