public static < T , V extends Object > void type ( V value , Class < T > type ) { if ( ! validation ) return ; notNull ( value ) ; notNull ( type ) ; if ( ! type . isAssignableFrom ( value . getClass ( ) ) ) { throw new TypeException ( type . getCanonicalName ( ) ) ; } }
Checks if a given value has a specific type .