6 changed files with 26 additions and 3 deletions
@ -0,0 +1,17 @@
@@ -0,0 +1,17 @@
|
||||
package de.srsoftware.web4rail.conditions; |
||||
|
||||
public class AndCondition extends ConditionList{ |
||||
|
||||
@Override |
||||
public boolean fulfilledBy(Context context) { |
||||
for (Condition condition : this) { |
||||
if (!condition.fulfilledBy(context)) return false; |
||||
} |
||||
return true; |
||||
} |
||||
|
||||
@Override |
||||
protected String glue() { |
||||
return t("and"); |
||||
} |
||||
} |
Loading…
Reference in new issue