MCPcopy Create free account
hub / github.com/BaseXdb/basex / compare

Method compare

basex-core/src/main/java/org/basex/util/Token.java:749–751  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 15

evalMethod · 0.95
mergeEbvMethod · 0.95
moreMethod · 0.95
compareMethod · 0.95
compareMethod · 0.95
compareMethod · 0.95
compareMethod · 0.95
compareMethod · 0.95
addMethod · 0.95
TokenClass · 0.95
minMethod · 0.95
maxMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected