Compares two tokens lexicographically. @param token first token @param compare token to be compared @return result of comparison (-1, 0, 1)
(final byte[] token, final byte[] compare)
| 747 | * @return result of comparison (-1, 0, 1) |
| 748 | */ |
| 749 | public static int compare(final byte[] token, final byte[] compare) { |
| 750 | return Integer.signum(Arrays.compareUnsigned(token, compare)); |
| 751 | } |
| 752 | |
| 753 | /** |
| 754 | * Compares a substring of two tokens lexicographically. |