Comment on CSR 8251991: Hex formatting and parsing utility
Raffaello Giulietti
raffaello.giulietti at gmail.com
Mon Mar 8 10:52:41 UTC 2021
Hello,
it appears that all of the following API methods in [1] can be declared
*static*, which makes them more useful in contexts where there's no
instance of HexFormat available or none is desired.
As 17 has not yet entered any formal phase, the change should be harmless.
public boolean isHexDigit(int);
public int fromHexDigit(int);
public int fromHexDigits(java.lang.CharSequence);
public int fromHexDigits(java.lang.CharSequence, int, int);
public long fromHexDigitsToLong(java.lang.CharSequence);
public long fromHexDigitsToLong(java.lang.CharSequence, int, int);
Greetings
Raffaello
----
[1] https://bugs.openjdk.java.net/browse/JDK-8251991
More information about the core-libs-dev
mailing list