@Test public void invokeNull() { FunctionTestUtil.assertResultError(floorFunction.invoke(null), InvalidParametersEvent.class); }
public FEELFnResult<BigDecimal> invoke(@ParameterName( "n" ) BigDecimal n) { if ( n == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "n", "cannot be null")); } return FEELFnResult.ofResult( n.setScale( 0, BigDecimal.ROUND_FLOOR ) ); }
FloorFunction extends BaseFEELFunction { public FEELFnResult<BigDecimal> invoke(@ParameterName( "n" ) BigDecimal n) { if ( n == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "n", "cannot be null")); } return FEELFnResult.ofResult( n.setScale( 0, BigDecimal.ROUND_FLOOR ) ); } }
FloorFunction extends BaseFEELFunction { public FEELFnResult<BigDecimal> invoke(@ParameterName( "n" ) BigDecimal n) { if ( n == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "n", "cannot be null")); } return FEELFnResult.ofResult( n.setScale( 0, BigDecimal.ROUND_FLOOR ) ); } FloorFunction(); }
FloorFunction extends BaseFEELFunction { public FEELFnResult<BigDecimal> invoke(@ParameterName( "n" ) BigDecimal n) { if ( n == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "n", "cannot be null")); } return FEELFnResult.ofResult( n.setScale( 0, BigDecimal.ROUND_FLOOR ) ); } FloorFunction(); FEELFnResult<BigDecimal> invoke(@ParameterName( "n" ) BigDecimal n); }
FloorFunction extends BaseFEELFunction { public FEELFnResult<BigDecimal> invoke(@ParameterName( "n" ) BigDecimal n) { if ( n == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "n", "cannot be null")); } return FEELFnResult.ofResult( n.setScale( 0, BigDecimal.ROUND_FLOOR ) ); } FloorFunction(); FEELFnResult<BigDecimal> invoke(@ParameterName( "n" ) BigDecimal n); static final FloorFunction INSTANCE; }