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

Method compare

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

Source from the content-addressed store, hash-verified

90 }
91
92 @Override
93 public final int compare(final Item item, final Collation coll, final boolean transitive,
94 final InputInfo ii) throws QueryException {
95 return item.type.isStringOrUntyped() ?
96 Token.compare(string(), item.string(ii), Collation.get(coll, ii)) :
97 -item.compare(this, coll, transitive, ii);
98 }
99
100 @Override
101 public final boolean deepEqual(final Item item, final DeepEqual deep) throws QueryException {

Callers

nothing calls this directly

Calls 10

compareMethod · 0.95
stringMethod · 0.95
getMethod · 0.95
parentMethod · 0.95
sizeMethod · 0.95
getMethod · 0.95
childIterMethod · 0.95
isStringOrUntypedMethod · 0.65
addMethod · 0.65
isMethod · 0.65

Tested by

no test coverage detected