public static void isPositive ( Integer value , String name ) { notNull ( value , name ) ; if ( value < 0 ) { throw new IllegalArgumentException ( name + "must be a positive number." ) ; } }
Checks that i is not null and is a positive number