public static void notNegative ( final Integer input , final String inputName ) { notNull ( input , inputName ) ; if ( input < 0 ) { throw new IllegalArgumentException ( "a value of " + input . toString ( ) + " was unexpected for " + maskNullArgument ( inputName ) + ", it is expected to be positive" ) ; } }
Checks that the input value is non - negative