22 lines
437 B
Java
22 lines
437 B
Java
import java.util.List;
|
|
import java.util.ArrayList;
|
|
|
|
public class ConditionEt {
|
|
|
|
List<ConditionTest> conditionTests;
|
|
|
|
public ConditionEt(List<ConditionTest> conditionTests) {
|
|
this.conditionTests = conditionTests;
|
|
}
|
|
|
|
public Boolean evaluer() {
|
|
for (ConditionTest cond : conditionTests) {
|
|
if (!cond.evaluer()) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
}
|