MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / wrap

Method wrap

src/test/java/com/amazon/ion/StructTest.java:55–73  ·  view source on GitHub ↗
(String... children)

Source from the content-addressed store, hash-verified

53 }
54
55 @Override
56 protected String wrap(String... children)
57 {
58 StringBuilder buf = new StringBuilder();
59 buf.append('{');
60 if (children != null)
61 {
62 for (int i = 0; i < children.length; i++)
63 {
64 buf.append('f');
65 buf.append(i);
66 buf.append(':');
67 buf.append(children[i]);
68 buf.append(',');
69 }
70 }
71 buf.append('}');
72 return buf.toString();
73 }
74
75 @Override
76 protected IonStruct wrapAndParse(String... children)

Callers 1

wrapAndParseMethod · 0.95

Calls 5

addMethod · 0.95
toStringMethod · 0.65
newNullStructMethod · 0.65
appendMethod · 0.45
systemMethod · 0.45

Tested by

no test coverage detected