blob: 6056da45e338495f1bcb6984df75608680d512bb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*
* SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/
package tools.refinery.store.query.literal;
import tools.refinery.store.query.term.Term;
public final class Literals {
private Literals() {
throw new IllegalStateException("This is a static utility class and should not be instantiated directly");
}
public static <T extends CanNegate<T>> T not(CanNegate<T> literal) {
return literal.negate();
}
public static CheckLiteral check(Term<Boolean> term) {
return new CheckLiteral(term);
}
}
|