blob: 01830af100ff13e7f378195fffde2015e4364481 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package tools.refinery.store.query.dnf;
import tools.refinery.store.query.equality.LiteralEqualityHelper;
import tools.refinery.store.query.literal.Literal;
import tools.refinery.store.query.term.Variable;
import java.util.List;
import java.util.Set;
public record DnfClause(Set<Variable> boundVariables, List<Literal> literals) {
public boolean equalsWithSubstitution(LiteralEqualityHelper helper, DnfClause other) {
int size = literals.size();
if (size != other.literals.size()) {
return false;
}
for (int i = 0; i < size; i++) {
if (!literals.get(i).equalsWithSubstitution(helper, other.literals.get(i))) {
return false;
}
}
return true;
}
}
|