public static Class<?> toClass(Type type) {
        if (type instanceof Class) {
            return (Class) type;
        } else if (type instanceof ParameterizedType) {
            ParameterizedType pt = (ParameterizedType) type;
            return toClass(pt.getRawType());
        } else {
            throw PojoLogger.ROOT_LOGGER.unknownType(type);
        }
    }
public static Class<?> toClass(Type type) {
        if (type instanceof Class) {
            return (Class) type;
        } else if (type instanceof ParameterizedType) {
            ParameterizedType pt = (ParameterizedType) type;
            return toClass(pt.getRawType());
        } else {
            throw PojoLogger.ROOT_LOGGER.unknownType(type);
        }
    }
public static Class < ? > toClass ( Type type ) { if ( type instanceof Class ) { return ( Class ) type ; } else if ( type instanceof ParameterizedType ) { ParameterizedType pt = ( ParameterizedType ) type ; return toClass ( pt . getRawType ( ) ) ; } else { throw PojoLogger . ROOT_LOGGER . unknownType ( type ) ; } }
Turn type into class.

@param type the type
@return class
Turn type into class .