public static boolean isPrimitiveOrWrapper(Class<?> klass) {
    return Byte.class.equals(klass) || byte.class.equals(klass) || Short.class.equals(klass)
        || short.class.equals(klass) || Integer.class.equals(klass) || int.class.equals(klass)
        || Long.class.equals(klass) || long.class.equals(klass) || Float.class.equals(klass)
        || float.class.equals(klass) || Double.class.equals(klass) || double.class.equals(klass)
        || Boolean.class.equals(klass) || boolean.class.equals(klass) || String.class.equals(klass);
  }
The NumberUtils class is a utility class for working with numbers.
<p>

@see java.lang.Number
@since GemFire 8.0
geode-web-api/src/main/java/org/apache/geode/rest/internal/web/util/NumberUtils.java