use of com.amazon.ion.IonList in project ion-java by amzn.
the class _Private_CurriedValueFactory method newList.
public IonList newList(int[] values) {
IonList v = myFactory.newList(values);
handle(v);
return v;
}
use of com.amazon.ion.IonList in project ion-java by amzn.
the class _Private_CurriedValueFactory method newList.
public IonList newList(IonValue... values) throws ContainedValueException, NullPointerException {
IonList v = myFactory.newList(values);
handle(v);
return v;
}
use of com.amazon.ion.IonList in project ion-java by amzn.
the class _Private_CurriedValueFactory method newList.
public IonList newList(long[] values) {
IonList v = myFactory.newList(values);
handle(v);
return v;
}
use of com.amazon.ion.IonList in project ion-java by amzn.
the class _Private_CurriedValueFactory method newList.
@Deprecated
public IonList newList(Collection<? extends IonValue> values) throws ContainedValueException, NullPointerException {
IonList v = myFactory.newList(values);
handle(v);
return v;
}
use of com.amazon.ion.IonList in project ion-java by amzn.
the class PrinterTest method testPrintingList.
@Test
public void testPrintingList() throws Exception {
IonList value = system().newNullList();
checkNullRendering("null.list", value);
value.add(system().newNull());
checkRendering("[null]", value);
value.add(int123());
checkRendering("[null,123]", value);
value.add(symbolNotEquals());
value.add(symbolHello());
value.add(symbol("null"));
checkRendering("[null,123,'!=',hello,'null']", value);
value = (IonList) oneValue("[]");
checkRendering("[]", value);
value.addTypeAnnotation("an");
checkRendering("an::[]", value);
}
Aggregations