public static boolean isNumeric(String value) {
    value = String.valueOf(value).trim(); // guard against null

    for (char chr : value.toCharArray()) {
      if (!Character.isDigit(chr)) {
        return false;
      }
    }

    return true;
  }
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