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

Method string

basex-core/src/main/java/org/basex/query/value/item/YMDur.java:97–104  ·  view source on GitHub ↗
(final InputInfo ii)

Source from the content-addressed store, hash-verified

95 }
96
97 @Override
98 public byte[] string(final InputInfo ii) {
99 final TokenBuilder tb = new TokenBuilder();
100 if(months < 0) tb.add('-');
101 date(tb);
102 if(months == 0) tb.add("0M");
103 return tb.finish();
104 }
105
106 @Override
107 public int compare(final Item item, final Collation coll, final boolean transitive,

Callers 1

writeMethod · 0.95

Calls 3

addMethod · 0.95
finishMethod · 0.95
dateMethod · 0.45

Tested by

no test coverage detected