src/main/java/com/cedarsoftware/util/io/ObjectResolver.java
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;
    }
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;
    }
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.
@param t Type to attempt to get raw type from.
@return Raw type obtained from the passed in parameterized type or null if T is not a ParameterizedType
Given the passed in Type t return the raw type of it if the passed in value is a ParameterizedType .