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

Method inRange

basex-core/src/main/java/org/basex/query/expr/CmpR.java:179–182  ·  view source on GitHub ↗

Checks if the specified value is within the allowed range. @param item value to check @return result of check @throws QueryException query exception

(final Item item)

Source from the content-addressed store, hash-verified

177 * @throws QueryException query exception
178 */
179 private boolean inRange(final Item item) throws QueryException {
180 final double value = item.dbl(info);
181 return value >= min && value <= max;
182 }
183
184 @Override
185 public Expr mergeEbv(final Expr ex, final boolean or, final CompileContext cc)

Callers 1

testMethod · 0.95

Calls 1

dblMethod · 0.45

Tested by

no test coverage detected