projet-genie-logiciel-systeme/enigme.java/ConditionEt.java
Laureηt 2b4b5433b7
feat: ajout du java
Co-authored-by: gdamms <gdamms@users.noreply.github.com>
2021-11-30 23:02:55 +01:00

19 lines
377 B
Java

public class ConditionEt {
ConditionTest[] conditionTests;
public ConditionEt(ConditionTest[] conditionTests) {
this.conditionTests = conditionTests;
}
public Boolean evaluer() {
for (ConditionTest cond : conditionTests) {
if (!cond.evaluer()) {
return false;
}
}
return true;
}
}