19 lines
381 B
Java
19 lines
381 B
Java
public class ConditionEt {
|
|
|
|
List<ConditionTest> conditionTests;
|
|
|
|
public ConditionEt(ConditionTest[] conditionTests) {
|
|
this.conditionTests = conditionTests;
|
|
}
|
|
|
|
public Boolean evaluer() {
|
|
for (ConditionTest cond : conditionTests) {
|
|
if (!cond.evaluer()) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
}
|