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

Method compare

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

Source from the content-addressed store, hash-verified

74 }
75
76 @Override
77 public int compare(final Item item, final Collation coll, final boolean transitive,
78 final InputInfo ii) throws QueryException {
79 return item.type.isStringOrUntyped() ?
80 Token.compare(value, item.string(ii), Collation.get(coll, ii)) :
81 -item.compare(this, coll, transitive, ii);
82 }
83
84 @Override
85 public Expr simplifyFor(final Simplify mode, final CompileContext cc) throws QueryException {

Callers

nothing calls this directly

Calls 4

compareMethod · 0.95
getMethod · 0.95
isStringOrUntypedMethod · 0.65
stringMethod · 0.45

Tested by

no test coverage detected