public static long getLong(final ObjectNode json, final String key, final long defaultValue) {
    return getLong(json, key).orElse(defaultValue);
  }
Gets long.

@param json the json
@param key the key
@param defaultValue the default value
@return the long
config/src/main/java/org/hyperledger/besu/config/JsonUtil.java