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

Method inRange

basex-core/src/main/java/org/basex/query/expr/CmpIR.java:159–162  ·  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

157 * @throws QueryException query exception
158 */
159 private boolean inRange(final Item item) throws QueryException {
160 final double value = item.dbl(info);
161 return value >= min && value <= max && value == (long) value;
162 }
163
164 @Override
165 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