private static boolean isPrimitiveEquivalent(Class<?> primitive, Class<? extends Object> aClass) {
        if (primitive == int.class
                || primitive == long.class
                || primitive == float.class
                || primitive == double.class) {
            return (aClass == Integer.class
                    || aClass == Long.class
                    || aClass == Float.class
                    || aClass == Double.class);
        }

        return false;
    }