@Test public void invokeNull() { FunctionTestUtil.assertResultError(reverseFunction.invoke(null), InvalidParametersEvent.class); }
public FEELFnResult<List<Object>> invoke(@ParameterName("list") List list) { if ( list == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null")); } final List<Object> result = new ArrayList<>( list ); Collections.reverse( result ); return FEELFnResult.ofResult( result ); }
ReverseFunction extends BaseFEELFunction { public FEELFnResult<List<Object>> invoke(@ParameterName("list") List list) { if ( list == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null")); } final List<Object> result = new ArrayList<>( list ); Collections.reverse( result ); return FEELFnResult.ofResult( result ); } }
ReverseFunction extends BaseFEELFunction { public FEELFnResult<List<Object>> invoke(@ParameterName("list") List list) { if ( list == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null")); } final List<Object> result = new ArrayList<>( list ); Collections.reverse( result ); return FEELFnResult.ofResult( result ); } ReverseFunction(); }
ReverseFunction extends BaseFEELFunction { public FEELFnResult<List<Object>> invoke(@ParameterName("list") List list) { if ( list == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null")); } final List<Object> result = new ArrayList<>( list ); Collections.reverse( result ); return FEELFnResult.ofResult( result ); } ReverseFunction(); FEELFnResult<List<Object>> invoke(@ParameterName("list") List list); }
ReverseFunction extends BaseFEELFunction { public FEELFnResult<List<Object>> invoke(@ParameterName("list") List list) { if ( list == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null")); } final List<Object> result = new ArrayList<>( list ); Collections.reverse( result ); return FEELFnResult.ofResult( result ); } ReverseFunction(); FEELFnResult<List<Object>> invoke(@ParameterName("list") List list);  }