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

Method decode

output/java_guava/1.4.17/HashCode.java:370–378  ·  view source on GitHub ↗
(char ch)

Source from the content-addressed store, hash-verified

368 }
369
370 private static int decode(char ch) {
371 if (ch >= '0' && ch <= '9') {
372 return ch - '0';
373 }
374 if (ch >= 'a' && ch <= 'f') {
375 return ch - 'a' + 10;
376 }
377 throw new IllegalArgumentException("Illegal hexadecimal character: " + ch);
378 }
379
380 /**
381 * 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