@Override
    public int hashCode() {
      return value.hashCode();
    }
This is a modified copy of Gson's internal LazilyParsedNumber.
java_src/src/main/java/com/google/crypto/tink/internal/JsonParser.java