public static < T , V extends Object > void type ( Collection < V > valueColl , Class < T > type ) { for ( V value : valueColl ) type ( value , type ) ; } //------- Numerical checks ---------------------------------------------------------------------------- //------- Integer -------------------------------- /** * Checks if the given integer is positive. * @param value The integer value to validate. * @throws ParameterException if the given integer value is <code>null</code> or smaller/equal to 0. */ public static void positive ( Integer value ) { if ( ! validation ) return ; notNull ( value ) ; if ( value <= 0 ) throw new ParameterException ( ErrorCode . NOTPOSITIVE ) ; }
Checks if the elements of a given collection have a specific type .