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

Method cmp

basex-core/src/main/java/org/basex/util/list/IntList.java:580–583  ·  view source on GitHub ↗

Compares two tokens and returns an integer. @param value1 first value @param value2 second value @return result

(final byte[] value1, final byte[] value2)

Source from the content-addressed store, hash-verified

578 * @return result
579 */
580 private static int cmp(final byte[] value1, final byte[] value2) {
581 return value1 == null ? value2 == null ? 0 : -1 : value2 == null ? 1 :
582 Token.compare(value1, value2);
583 }
584
585 /**
586 * Swaps two array elements.

Callers 1

sortMethod · 0.95

Calls 1

compareMethod · 0.95

Tested by

no test coverage detected