22 lines
416 B
Java
22 lines
416 B
Java
import java.util.List;
|
|
import java.util.ArrayList;
|
|
|
|
public class Condition {
|
|
|
|
List<ConditionEt> conditionEts;
|
|
|
|
public Condition(List<ConditionEt> conditionEts) {
|
|
this.conditionEts = conditionEts;
|
|
}
|
|
|
|
public Boolean evaluer() {
|
|
for (ConditionEt cond : conditionEts) {
|
|
if (cond.evaluer()) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
}
|