@Test public void orFunction() throws Exception { Function f = new OrFunction(new ConfigThingy("OR", "\"false\" \"true\""), new FunctionLibrary(), new DialogLibrary(), new HashMap<>()); assertEquals(0, f.parameters().length); assertEquals("true", f.getString(null)); assertTrue(f.getBoolean(null)); Collection<String> dialogFunctions = new ArrayList<>(); f.getFunctionDialogReferences(dialogFunctions); assertTrue(dialogFunctions.isEmpty()); f = new OrFunction(List.of(new StringLiteralFunction("false"))); assertEquals("false", f.getString(null)); assertFalse(f.getBoolean(null)); f = new OrFunction(List.of(new StringLiteralFunction(FunctionLibrary.ERROR))); assertEquals(FunctionLibrary.ERROR, f.getString(null)); }
public OrFunction(Collection<Function> subFunction) { super(subFunction); }
OrFunction extends MultiFunction { public OrFunction(Collection<Function> subFunction) { super(subFunction); } }
OrFunction extends MultiFunction { public OrFunction(Collection<Function> subFunction) { super(subFunction); } OrFunction(Collection<Function> subFunction);  OrFunction(ConfigThingy conf, FunctionLibrary funcLib,
      DialogLibrary dialogLib, Map<Object, Object> context); }
OrFunction extends MultiFunction { public OrFunction(Collection<Function> subFunction) { super(subFunction); } OrFunction(Collection<Function> subFunction);  OrFunction(ConfigThingy conf, FunctionLibrary funcLib,
      DialogLibrary dialogLib, Map<Object, Object> context); @Override String getString(Values parameters); }
OrFunction extends MultiFunction { public OrFunction(Collection<Function> subFunction) { super(subFunction); } OrFunction(Collection<Function> subFunction);  OrFunction(ConfigThingy conf, FunctionLibrary funcLib,
      DialogLibrary dialogLib, Map<Object, Object> context); @Override String getString(Values parameters);  }