projet-genie-logiciel-systeme/enigme.java/ConditionEt.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;
}
}