@Test public void invokeStartNegative() { FunctionTestUtil.assertResult(substringFunction.invoke("test", -1), "t"); FunctionTestUtil.assertResult(substringFunction.invoke("test", -2), "st"); FunctionTestUtil.assertResult(substringFunction.invoke("test", -4), "test"); FunctionTestUtil.assertResult(substringFunction.invoke("test", -2, 1), "s"); FunctionTestUtil.assertResult(substringFunction.invoke("test", -3, 2), "es"); }
public FEELFnResult<String> invoke(@ParameterName("string") String string, @ParameterName("start position") Number start) { return invoke(string, start, null); }
SubstringFunction extends BaseFEELFunction { public FEELFnResult<String> invoke(@ParameterName("string") String string, @ParameterName("start position") Number start) { return invoke(string, start, null); } }
SubstringFunction extends BaseFEELFunction { public FEELFnResult<String> invoke(@ParameterName("string") String string, @ParameterName("start position") Number start) { return invoke(string, start, null); } SubstringFunction(); }
SubstringFunction extends BaseFEELFunction { public FEELFnResult<String> invoke(@ParameterName("string") String string, @ParameterName("start position") Number start) { return invoke(string, start, null); } SubstringFunction(); FEELFnResult<String> invoke(@ParameterName("string") String string, @ParameterName("start position") Number start); FEELFnResult<String> invoke(@ParameterName("string") String string, @ParameterName("start position") Number start, @ParameterName("length") Number length); }
SubstringFunction extends BaseFEELFunction { public FEELFnResult<String> invoke(@ParameterName("string") String string, @ParameterName("start position") Number start) { return invoke(string, start, null); } SubstringFunction(); FEELFnResult<String> invoke(@ParameterName("string") String string, @ParameterName("start position") Number start); FEELFnResult<String> invoke(@ParameterName("string") String string, @ParameterName("start position") Number start, @ParameterName("length") Number length);  }