public static boolean isPropertyOfType(Class<?> clazz, String propertyName, Class<?> type) {
        try {
            Class<?> propType = getPropertyType(clazz, propertyName);
            return propType != null && propType.equals(type);
        }
        catch (Exception e) {
            return false;
        }
    }
public static boolean isPropertyOfType ( Class < ? > clazz , String propertyName , Class < ? > type ) { try { Class < ? > propType = getPropertyType ( clazz , propertyName ) ; return propType != null && propType . equals ( type ) ; } catch ( Exception e ) { return false ; } }
Returns true if the specified property in the specified class is of the specified type

@param clazz The class which contains the property
@param propertyName The property name
@param type The type to check

@return A boolean value