> The documentation for java.util.UUID.toString() has a "BNF" section
> with some things between angle-brackets. They definitely don't look
> right on a browser. I think each < should be <
public String toString()
Returns a String object representing this UUID.
The UUID string representation is as described by this BNF :
UUID = "-" "-"
"-"
"-"
time_low = 4*
time_mid = 2*
time_high_and_version = 2*
variant_and_sequence = 2*
node = 6*
hexOctet =
hexDigit =
"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
| "a" | "b" | "c" | "d" | "e" | "f"
| "A" | "B" | "C" | "D" | "E" | "F"
Here's the doc comment:
/**
* Returns a <code>String</code> object representing this
* <code>UUID</code>.
*
* <p>The UUID string representation is as described by this BNF :
* <pre>
* UUID = <time_low> "-" <time_mid> "-"
* <time_high_and_version> "-"
* <variant_and_sequence> "-"
* <node>
* time_low = 4*<hexOctet>
* time_mid = 2*<hexOctet>
* time_high_and_version = 2*<hexOctet>
* variant_and_sequence = 2*<hexOctet>
* node = 6*<hexOctet>
* hexOctet = <hexDigit><hexDigit>
* hexDigit =
* "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
* | "a" | "b" | "c" | "d" | "e" | "f"
* | "A" | "B" | "C" | "D" | "E" | "F"
* </pre>
*
* @return a string representation of this <tt>UUID</tt>.
*/
public String toString() {
###@###.### 2005-03-03 16:40:48 GMT
> with some things between angle-brackets. They definitely don't look
> right on a browser. I think each < should be <
public String toString()
Returns a String object representing this UUID.
The UUID string representation is as described by this BNF :
UUID = "-" "-"
"-"
"-"
time_low = 4*
time_mid = 2*
time_high_and_version = 2*
variant_and_sequence = 2*
node = 6*
hexOctet =
hexDigit =
"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
| "a" | "b" | "c" | "d" | "e" | "f"
| "A" | "B" | "C" | "D" | "E" | "F"
Here's the doc comment:
/**
* Returns a <code>String</code> object representing this
* <code>UUID</code>.
*
* <p>The UUID string representation is as described by this BNF :
* <pre>
* UUID = <time_low> "-" <time_mid> "-"
* <time_high_and_version> "-"
* <variant_and_sequence> "-"
* <node>
* time_low = 4*<hexOctet>
* time_mid = 2*<hexOctet>
* time_high_and_version = 2*<hexOctet>
* variant_and_sequence = 2*<hexOctet>
* node = 6*<hexOctet>
* hexOctet = <hexDigit><hexDigit>
* hexDigit =
* "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
* | "a" | "b" | "c" | "d" | "e" | "f"
* | "A" | "B" | "C" | "D" | "E" | "F"
* </pre>
*
* @return a string representation of this <tt>UUID</tt>.
*/
public String toString() {
###@###.### 2005-03-03 16:40:48 GMT
- duplicates
-
JDK-4916442 some meaningful part of method doc is lost in the java.util.UUID.toString()
-
- Closed
-
-
JDK-6340367 UUID.toString() Javadoc broken
-
- Closed
-