public static Long parseLong(final String value) {
    try {
      return Long.parseLong(StringUtils.trimAllWhitespace(value));
    } catch (NumberFormatException ignore) {
      return null;
    }
  }
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