MCPcopy Create free account
hub / github.com/antlr/codebuff / toString

Method toString

output/java_guava/1.4.16/HashCode.java:433–441  ·  view source on GitHub ↗

Returns a string containing each byte of #asBytes, in order, as a two-digit unsigned hexadecimal number in lower case. Note that if the output is considered to be a single hexadecimal number, this hash code's bytes are the big-endian representation of that number. This may be surp

()

Source from the content-addressed store, hash-verified

431 */
432
433 @Override
434 public final String toString() {
435 byte[] bytes = getBytesInternal();
436 StringBuilder sb = new StringBuilder(2 * bytes.length);
437 for (byte b : bytes) {
438 sb.append(hexDigits[(b >> 4) & 0xf]).append(hexDigits[b & 0xf]);
439 }
440 return sb.toString();
441 }
442
443 private static final char[] hexDigits = "0123456789abcdef".toCharArray();
444}

Callers

nothing calls this directly

Calls 3

getBytesInternalMethod · 0.95
toStringMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected