2021-11-30 22:02:55 +00:00
|
|
|
public class ConditionEt {
|
|
|
|
|
2021-12-01 08:09:27 +00:00
|
|
|
List<ConditionTest> conditionTests;
|
2021-11-30 22:02:55 +00:00
|
|
|
|
|
|
|
public ConditionEt(ConditionTest[] conditionTests) {
|
|
|
|
this.conditionTests = conditionTests;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Boolean evaluer() {
|
|
|
|
for (ConditionTest cond : conditionTests) {
|
|
|
|
if (!cond.evaluer()) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|