19 lines
377 B
Java
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;
|
||
|
}
|
||
|
|
||
|
}
|