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

Method toString

basex-core/src/main/java/org/basex/util/options/Option.java:44–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 }
43
44 @Override
45 public String toString() {
46 final StringBuilder sb = new StringBuilder(name());
47 final Object v = value();
48 if(v != null && !v.toString().isEmpty()) sb.append('=').append(v);
49 return sb.toString();
50 }
51
52 /**
53 * Returns a string representation of the option with the specified argument.

Callers

nothing calls this directly

Calls 5

nameMethod · 0.95
valueMethod · 0.95
toStringMethod · 0.65
appendMethod · 0.65
isEmptyMethod · 0.45

Tested by

no test coverage detected