@Test public void invokeBooleanParamNull() { FunctionTestUtil.assertResult(anyFunction.invoke((Boolean) null), false); }
public FEELFnResult<Boolean> invoke(@ParameterName( "list" ) List list) { if ( list == null ) { return FEELFnResult.ofResult( false ); } boolean result = false; 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 ); }
NNAnyFunction extends BaseFEELFunction { public FEELFnResult<Boolean> invoke(@ParameterName( "list" ) List list) { if ( list == null ) { return FEELFnResult.ofResult( false ); } boolean result = false; 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 ); } }
NNAnyFunction extends BaseFEELFunction { public FEELFnResult<Boolean> invoke(@ParameterName( "list" ) List list) { if ( list == null ) { return FEELFnResult.ofResult( false ); } boolean result = false; 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 ); } NNAnyFunction(); }
NNAnyFunction extends BaseFEELFunction { public FEELFnResult<Boolean> invoke(@ParameterName( "list" ) List list) { if ( list == null ) { return FEELFnResult.ofResult( false ); } boolean result = false; 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 ); } NNAnyFunction(); FEELFnResult<Boolean> invoke(@ParameterName( "list" ) List list); FEELFnResult<Boolean> invoke(@ParameterName( "list" ) Boolean single); FEELFnResult<Boolean> invoke(@ParameterName( "b" ) Object[] list); }
NNAnyFunction extends BaseFEELFunction { public FEELFnResult<Boolean> invoke(@ParameterName( "list" ) List list) { if ( list == null ) { return FEELFnResult.ofResult( false ); } boolean result = false; 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 ); } NNAnyFunction(); FEELFnResult<Boolean> invoke(@ParameterName( "list" ) List list); FEELFnResult<Boolean> invoke(@ParameterName( "list" ) Boolean single); FEELFnResult<Boolean> invoke(@ParameterName( "b" ) Object[] list); static final NNAnyFunction INSTANCE; }