@Test public void invokeListParamReturnNull() { FunctionTestUtil.assertResult(NNAllFunction.invoke(Arrays.asList(Boolean.TRUE, null, Boolean.TRUE)), true); }
public FEELFnResult<Boolean> invoke(@ParameterName( "list" ) List list) { if ( list == null ) { return FEELFnResult.ofResult( true ); } boolean result = true; for ( final Object element : list ) { if (element != null && !(element instanceof Boolean)) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "an element in the list is not a Boolean")); } else { if (element != null) { result &= (Boolean) element; } } } return FEELFnResult.ofResult( result ); }
NNAllFunction extends BaseFEELFunction { public FEELFnResult<Boolean> invoke(@ParameterName( "list" ) List list) { if ( list == null ) { return FEELFnResult.ofResult( true ); } boolean result = true; for ( final Object element : list ) { if (element != null && !(element instanceof Boolean)) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "an element in the list is not a Boolean")); } else { if (element != null) { result &= (Boolean) element; } } } return FEELFnResult.ofResult( result ); } }
NNAllFunction extends BaseFEELFunction { public FEELFnResult<Boolean> invoke(@ParameterName( "list" ) List list) { if ( list == null ) { return FEELFnResult.ofResult( true ); } boolean result = true; for ( final Object element : list ) { if (element != null && !(element instanceof Boolean)) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "an element in the list is not a Boolean")); } else { if (element != null) { result &= (Boolean) element; } } } return FEELFnResult.ofResult( result ); } NNAllFunction(); }
NNAllFunction extends BaseFEELFunction { public FEELFnResult<Boolean> invoke(@ParameterName( "list" ) List list) { if ( list == null ) { return FEELFnResult.ofResult( true ); } boolean result = true; for ( final Object element : list ) { if (element != null && !(element instanceof Boolean)) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "an element in the list is not a Boolean")); } else { if (element != null) { result &= (Boolean) element; } } } return FEELFnResult.ofResult( result ); } NNAllFunction(); FEELFnResult<Boolean> invoke(@ParameterName( "list" ) List list); FEELFnResult<Boolean> invoke(@ParameterName( "list" ) Boolean single); FEELFnResult<Boolean> invoke(@ParameterName( "b" ) Object[] list); }
NNAllFunction extends BaseFEELFunction { public FEELFnResult<Boolean> invoke(@ParameterName( "list" ) List list) { if ( list == null ) { return FEELFnResult.ofResult( true ); } boolean result = true; for ( final Object element : list ) { if (element != null && !(element instanceof Boolean)) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "an element in the list is not a Boolean")); } else { if (element != null) { result &= (Boolean) element; } } } return FEELFnResult.ofResult( result ); } NNAllFunction(); FEELFnResult<Boolean> invoke(@ParameterName( "list" ) List list); FEELFnResult<Boolean> invoke(@ParameterName( "list" ) Boolean single); FEELFnResult<Boolean> invoke(@ParameterName( "b" ) Object[] list); static final NNAllFunction INSTANCE; }