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

Method compare

basex-core/src/main/java/org/basex/query/value/item/Bin.java:51–56  ·  view source on GitHub ↗
(final Item item, final Collation coll, final boolean transitive,
      final InputInfo ii)

Source from the content-addressed store, hash-verified

49 }
50
51 @Override
52 public final int compare(final Item item, final Collation coll, final boolean transitive,
53 final InputInfo ii) throws QueryException {
54 final byte[] binary = item instanceof final Bin bin ? bin.binary(ii) : parse(item, ii);
55 return Token.compare(binary(ii), binary);
56 }
57
58 /**
59 * Converts the given item to a byte array.

Callers

nothing calls this directly

Calls 3

binaryMethod · 0.95
parseMethod · 0.95
compareMethod · 0.95

Tested by

no test coverage detected