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