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

Method qf

basex-api/src/main/java/org/basex/http/web/WebModules.java:312–315  ·  view source on GitHub ↗

Returns the quality factor of the specified media type. @param type media type @param factor quality factor string @return quality factor

(final MediaType type, final String factor)

Source from the content-addressed store, hash-verified

310 * @return quality factor
311 */
312 private static double qf(final MediaType type, final String factor) {
313 final String qf = type.parameter(factor);
314 return qf != null ? toDouble(token(qf)) : 1;
315 }
316
317 /**
318 * Returns the module cache.

Callers 1

bestQfMethod · 0.95

Calls 3

tokenMethod · 0.65
parameterMethod · 0.45
toDoubleMethod · 0.45

Tested by

no test coverage detected