@@ -0,0 +1,850 @@
+package org.spick.hephaistos;%0D%0A%0D%0Aimport java.util.ArrayList;%0D%0Aimport java.util.List;%0D%0Aimport java.util.Objects;%0D%0A%0D%0Aimport org.spick.hephaistos.util.ListUtil;%0D%0A%0D%0A/**%0D%0A * Or condition%0D%0A * @author Florian%0D%0A *%0D%0A */%0D%0Apublic class Or implements Condition%7B%0D%0A%0D%0A%09private List%3CString%3E stringConditions = new ArrayList%3C%3E();%0D%0A%09%0D%0A%09public Or(String string) %7B%0D%0A%09%09Objects.requireNonNull(string);%0D%0A%09%09stringConditions.add(string);%0D%0A%09%7D%0D%0A%0D%0A%09public void or(String string) %7B%0D%0A%09%09stringConditions.add(string);%0D%0A%09%7D%0D%0A%09%0D%0A%09public void or(Condition condition) %7B%0D%0A%09%09stringConditions.add(condition.print());%0D%0A%09%7D%0D%0A%0D%0A%09public static Or of(String string) %7B%0D%0A%09%09return new Or(string);%0D%0A%09%7D%0D%0A%09%0D%0A%09public static Or of(Condition condition) %7B%0D%0A%09%09return new Or(condition.print());%0D%0A%09%7D%0D%0A%0D%0A%09@Override%0D%0A%09public String print() %7B%0D%0A%09%09return ListUtil.joinStringList(stringConditions, %22 or %22);%0D%0A%09%7D%0D%0A%7D%0D%0A

add or condition