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

Method add

src/main/java/com/amazon/ion/IonStruct.java:182–182  ·  view source on GitHub ↗

Adds a new field to this struct. If this is null.struct , then it becomes a single-field struct. If a field with the given name already exists in this struct, this call will result in repeated fields. @param fieldName the name of the new field. @param child the value of the new fiel

(String fieldName, IonValue child)

Source from the content-addressed store, hash-verified

180 * if {@code element} is an {@link IonDatagram}.
181 */
182 public void add(String fieldName, IonValue child)
183 throws ContainedValueException;
184
185

Implementers 1

IonStructLitesrc/main/java/com/amazon/ion/impl/lite

Calls

no outgoing calls