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

Method set

basex-core/src/main/java/org/basex/gui/GUI.java:542–548  ·  view source on GitHub ↗

Sets an option if its value differs from current value and displays the command in the info view. @param option type @param value type @param opt option to be set @param val value

(final T opt, final V val)

Source from the content-addressed store, hash-verified

540 * @param val value
541 */
542 public <T extends Option<V>, V> void set(final T opt, final V val) {
543 if(!context.options.get(opt).toString().equals(val.toString())) {
544 final Set cmd = new Set(opt, val);
545 cmd.run(context);
546 info.setInfo(cmd.info(), cmd, true, false);
547 }
548 }
549
550 /**
551 * Sets the border of the content area.

Callers 1

setOptionsMethod · 0.95

Calls 6

runMethod · 0.95
setInfoMethod · 0.80
toStringMethod · 0.65
getMethod · 0.65
infoMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected