(char ch)
| 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 |