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

Method max

basex-core/src/main/java/org/basex/query/var/VarUsage.java:24–26  ·  view source on GitHub ↗

Combines the usages for two alternative branches. @param other usage count to be combined @return number of usages for the disjunction of both branches

(final VarUsage other)

Source from the content-addressed store, hash-verified

22 * @return number of usages for the disjunction of both branches
23 */
24 public VarUsage max(final VarUsage other) {
25 return compareTo(other) > 0 ? this : other;
26 }
27
28 /**
29 * Combines the usages for two expressions that are both executed.

Callers 15

countMethod · 0.95
maximumMethod · 0.95
normalizeMethod · 0.45
QueryInfoMethod · 0.45
optMethod · 0.45
posMethod · 0.45
sliceMethod · 0.45
itemMethod · 0.45
optMethod · 0.45
limitMethod · 0.45
roundMethod · 0.45
sizeMethod · 0.45

Calls 1

compareToMethod · 0.45

Tested by

no test coverage detected