blob: 5079f1ce7e4a27cc55abdfd97411ec47eb7aaa8f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package tools.refinery.store.query.term.bool;
import tools.refinery.store.query.term.ConstantTerm;
public final class BoolConstantTerm {
public static final ConstantTerm<Boolean> TRUE = new ConstantTerm<>(Boolean.class, true);
public static final ConstantTerm<Boolean> FALSE = new ConstantTerm<>(Boolean.class, false);
private BoolConstantTerm() {
throw new IllegalStateException("This is a static utility class and should not be instantiated directly");
}
public static ConstantTerm<Boolean> valueOf(boolean boolValue) {
return boolValue ? TRUE : FALSE;
}
}
|