We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c2ec8b commit a7daa3aCopy full SHA for a7daa3a
src/main/java/de/vill/model/constraint/AndConstraint.java
@@ -22,7 +22,26 @@ public AndConstraint(Constraint... constraints) {
22
}
23
24
public AndConstraint(Constraint left, Constraint right) {
25
- this(new Constraint[]{left, right});
+ this.children.add(left);
26
+ this.children.add(right);
27
+ }
28
+
29
+ public Constraint getLeft() {
30
+ if (children.isEmpty()){
31
+ return null;
32
33
+ else{
34
+ return children.get(0);
35
36
37
38
+ public Constraint getRight() {
39
+ if (children.isEmpty() || children.size() < 2){
40
41
42
43
+ return children.get(children.size() - 1);
44
45
46
47
public List<Constraint> getChildren() {
0 commit comments