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

Method decode

output/java_guava/1.4.19/HashCode.java:372–380  ·  view source on GitHub ↗
(char ch)

Source from the content-addressed store, hash-verified

370 }
371
372 private static int decode(char ch) {
373 if (ch >= '0' && ch <= '9') {
374 return ch - '0';
375 }
376 if (ch >= 'a' && ch <= 'f') {
377 return ch - 'a' + 10;
378 }
379 throw new IllegalArgumentException("Illegal hexadecimal character: " + ch);
380 }
381
382 /**
383 * Returns {@code true} if {@code object} is a {@link HashCode} instance with the identical byte

Callers 1

fromStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected