mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8251989: Hex formatting and parsing utility
Reviewed-by: tvaleev, chegar, naoto, darcy
This commit is contained in:
parent
efd61c6f53
commit
aa9c136d67
14 changed files with 1921 additions and 167 deletions
|
@ -264,10 +264,18 @@ public final class Integer extends Number
|
|||
* <blockquote>
|
||||
* {@code Integer.toHexString(n).toUpperCase()}
|
||||
* </blockquote>
|
||||
* <p>
|
||||
* @apiNote
|
||||
* The {@link java.util.HexFormat} class provides formatting and parsing
|
||||
* of byte arrays and primitives to return a string or adding to an {@link Appendable}.
|
||||
* {@code HexFormat} formats and parses uppercase or lowercase hexadecimal characters,
|
||||
* with leading zeros and for byte arrays includes for each byte
|
||||
* a delimiter, prefix, and suffix.
|
||||
*
|
||||
* @param i an integer to be converted to a string.
|
||||
* @return the string representation of the unsigned integer value
|
||||
* represented by the argument in hexadecimal (base 16).
|
||||
* @see java.util.HexFormat
|
||||
* @see #parseUnsignedInt(String, int)
|
||||
* @see #toUnsignedString(int, int)
|
||||
* @since 1.0.2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue