public static Class getRawType ( final Type t ) { if ( t instanceof ParameterizedType ) { ParameterizedType pType = ( ParameterizedType ) t ; if ( pType . getRawType ( ) instanceof Class ) { return ( Class ) pType . getRawType ( ) ; } } return null ; }
Given the passed in Type t return the raw type of it if the passed in value is a ParameterizedType .