public static Type [ ] getActualTypeArguments ( Type type ) { Type resolvedType = Types . getCanonicalType ( type ) ; if ( resolvedType instanceof ParameterizedType ) { return ( ( ParameterizedType ) resolvedType ) . getActualTypeArguments ( ) ; } else { return EMPTY_TYPES ; } }
Gets the actual type arguments of a Type