class ClassUtil {

    public static boolean isInstance(Class<?> clazz, Object object) {
        if (clazz == null || object == null) {
            return false;
        }

        if (clazz.isPrimitive()) {
            PrimitiveInfo<?> info = PRIMITIVES.get(clazz.getName());

            return info.wrapperType.isInstance(object);
        }

        return clazz.isInstance(object);
    }

}