IonValues.Warning
This interface should not be implemented or extended by code outside of this library.
| Modifier and Type | Method and Description |
|---|---|
| public <T extends IonValue> T | Returns: a deep copy of value, with no container.the value to copy. value)Creates a deep copy of an Ion value. |
| public IonBlob | newBlob(byte[]
the data for the new blob, to be copied from the
given array into the new instance.
May be value)null to create a null.blob value.Constructs a new Ion |
| public IonBlob | newBlob(byte[]
the data for the new blob, to be copied from the
given array into the new instance.
May be value, int null to create a null.blob value.the offset within the array of the first byte to copy;
must be non-negative and no larger than offset, int bytes.length.the number of bytes to be copied from the given array;
must be non-negative and no larger than length)bytes.length - offset.Constructs a new Ion |
| public IonBool | Returns: a bool with.the new value)bool's value.Constructs a new |
| public IonBool | |
| public IonClob | newClob(byte[]
the data for the new clob, to be copied from the
given array into the new instance.
May be value)null to create a null.clob value.Constructs a new Ion |
| public IonClob | newClob(byte[]
the data for the new blob, to be copied from the
given array into the new instance.
May be value, int null to create a null.clob value.the offset within the array of the first byte to copy;
must be non-negative an no larger than offset, int bytes.length.the number of bytes to be copied from the given array;
must be non-negative an no larger than length)bytes.length - offset.Constructs a new Ion |
| public IonDecimal | |
| public IonDecimal | |
| public IonDecimal | |
| public IonDecimal | |
| public IonList | |
| public IonSexp | |
| public IonStruct | |
| public IonFloat | |
| public IonFloat | |
| public IonInt | |
| public IonInt | |
| public IonInt | |
| public IonList | newList(Collection<? extends IonValue>
the initial set of children. If values)null, then the new
instance will have .
Deprecated
This method can be invoked
(accidentally and incorrectly) with an
IonSequence!
Constructs a new |
| public IonList | newList(IonSequence
the initial child of the new list. child)Constructs a new |
| public IonList | newList(IonValue...
the initial sequence of children. If children)null, then the new
instance will have .Constructs a new |
| public IonList | Returns: a new list where each element is anIonInt.the initial set of child values. If values)null, then the new
instance will have .
Otherwise, the resulting sequence will contain new IonInts with
the given values.Constructs a new |
| public IonList | Returns: a new list where each element is anIonInt.the initial set of child values. If values)null, then the new
instance will have .
Otherwise, the resulting sequence will contain new IonInts with
the given values.Constructs a new |
| public IonNull | |
| public IonValue | newNull(IonType
must not be Java null, but it may be type)IonType#NULL.Constructs a new Ion null value with the given type. |
| public IonBlob | |
| public IonBool | |
| public IonClob | |
| public IonDecimal | |
| public IonFloat | |
| public IonInt | |
| public IonList | |
| public IonSexp | |
| public IonString | |
| public IonStruct | |
| public IonSymbol | |
| public IonTimestamp | |
| public IonSexp | newSexp(Collection<? extends IonValue>
the initial set of children. If values)null, then the new
instance will have .
Deprecated
This method can be invoked
(accidentally and incorrectly) with an
IonSequence!
Constructs a new |
| public IonSexp | newSexp(IonSequence
the initial child of the new sexp. child)Constructs a new |
| public IonSexp | newSexp(IonValue...
the initial set of children. If children)null, then the new
instance will have .Constructs a new |
| public IonSexp | Returns: a new sexp where each element is anIonInt.the initial set of child values. If values)null, then the new
instance will have .
Otherwise, the resulting sequence will contain new IonInts with
the given values.Constructs a new |
| public IonSexp | Returns: a new sexp where each element is anIonInt.the initial set of child values. If values)null, then the new
instance will have .
Otherwise, the resulting sequence will contain new IonInts with
the given values.Constructs a new |
| public IonString | |
| public IonSymbol | |
| public IonSymbol | newSymbol(SymbolToken
the text and/or SID of the symbol;
may be value)null to make null.symbol.Constructs a new Ion symbol with the given symbol token. |
| public IonTimestamp | newTimestamp(Timestamp
may be value)null to make null.timestamp.Constructs a new |
| clone | back to summary |
|---|---|
| public <T extends IonValue> T clone(T value) throws IonException Creates a deep copy of an Ion value. This method can properly clone
The given value can be in the context of any
| |
| newBlob | back to summary |
|---|---|
| public IonBlob newBlob(byte[] value) Constructs a new Ion
| |
| newBlob | back to summary |
|---|---|
| public IonBlob newBlob(byte[] value, int offset, int length) Constructs a new Ion
This method copies
| |
| newBool | back to summary |
|---|---|
| public IonBool newBool(boolean value) Constructs a new
| |
| newBool | back to summary |
|---|---|
| public IonBool newBool(Boolean value) Constructs a new
| |
| newClob | back to summary |
|---|---|
| public IonClob newClob(byte[] value) Constructs a new Ion
| |
| newClob | back to summary |
|---|---|
| public IonClob newClob(byte[] value, int offset, int length) Constructs a new Ion
This method copies
| |
| newDecimal | back to summary |
|---|---|
| public IonDecimal newDecimal(long value) Constructs a new Ion | |
| newDecimal | back to summary |
|---|---|
| public IonDecimal newDecimal(double value) Constructs a new Ion
Note that this does not generate the exact decimal representation of the
| |
| newDecimal | back to summary |
|---|---|
| public IonDecimal newDecimal(BigInteger value) Constructs a new Ion | |
| newDecimal | back to summary |
|---|---|
| public IonDecimal newDecimal(BigDecimal value) Constructs a new Ion | |
| newEmptyList | back to summary |
|---|---|
| public IonList newEmptyList() Constructs a new empty (not null) | |
| newEmptySexp | back to summary |
|---|---|
| public IonSexp newEmptySexp() Constructs a new empty (not null) | |
| newEmptyStruct | back to summary |
|---|---|
| public IonStruct newEmptyStruct() Constructs a new empty (not null) | |
| newFloat | back to summary |
|---|---|
| public IonFloat newFloat(long value) Constructs a new Ion | |
| newFloat | back to summary |
|---|---|
| public IonFloat newFloat(double value) Constructs a new Ion | |
| newInt | back to summary |
|---|---|
| public IonInt newInt(int value) Constructs a new
| |
| newInt | back to summary |
|---|---|
| public IonInt newInt(long value) Constructs a new
| |
| newInt | back to summary |
|---|---|
| public IonInt newInt(Number value) Constructs a new
| |
| newList | back to summary |
|---|---|
| public IonList newList(Collection<? extends IonValue> values) throws ContainedValueException, NullPointerException
Deprecated This method can be invoked
(accidentally and incorrectly) with an Constructs a new
| |
| newList | back to summary |
|---|---|
| public IonList newList(IonSequence child) throws ContainedValueException, NullPointerException Constructs a new
This method is temporary until
| |
| newList | back to summary |
|---|---|
| public IonList newList(IonValue... children) throws ContainedValueException, NullPointerException Constructs a new Some edge cases are worth examples:
factory.newList(); // returns []
factory.newList((IonValue[]) null); // returns null.list
For clarity, applications should prefer newEmptyList() and
newNullList() instead.
| |
| newList | back to summary |
|---|---|
| public IonList newList(int[] values) Constructs a new
| |
| newList | back to summary |
|---|---|
| public IonList newList(long[] values) Constructs a new
| |
| newNull | back to summary |
|---|---|
| public IonNull newNull() Constructs a new | |
| newNull | back to summary |
|---|---|
| public IonValue newNull(IonType type) Constructs a new Ion null value with the given type.
| |
| newNullBlob | back to summary |
|---|---|
| public IonBlob newNullBlob() Constructs a new | |
| newNullBool | back to summary |
|---|---|
| public IonBool newNullBool() Constructs a new | |
| newNullClob | back to summary |
|---|---|
| public IonClob newNullClob() Constructs a new | |
| newNullDecimal | back to summary |
|---|---|
| public IonDecimal newNullDecimal() Constructs a new | |
| newNullFloat | back to summary |
|---|---|
| public IonFloat newNullFloat() Constructs a new | |
| newNullInt | back to summary |
|---|---|
| public IonInt newNullInt() Constructs a new | |
| newNullList | back to summary |
|---|---|
| public IonList newNullList() Constructs a new | |
| newNullSexp | back to summary |
|---|---|
| public IonSexp newNullSexp() Constructs a new | |
| newNullString | back to summary |
|---|---|
| public IonString newNullString() Constructs a new | |
| newNullStruct | back to summary |
|---|---|
| public IonStruct newNullStruct() Constructs a new | |
| newNullSymbol | back to summary |
|---|---|
| public IonSymbol newNullSymbol() Constructs a new | |
| newNullTimestamp | back to summary |
|---|---|
| public IonTimestamp newNullTimestamp() Constructs a new | |
| newSexp | back to summary |
|---|---|
| public IonSexp newSexp(Collection<? extends IonValue> values) throws ContainedValueException, NullPointerException
Deprecated This method can be invoked
(accidentally and incorrectly) with an Constructs a new
| |
| newSexp | back to summary |
|---|---|
| public IonSexp newSexp(IonSequence child) throws ContainedValueException, NullPointerException Constructs a new
This method is temporary until
| |
| newSexp | back to summary |
|---|---|
| public IonSexp newSexp(IonValue... children) throws ContainedValueException, NullPointerException Constructs a new Some edge cases are worth examples:
factory.newSexp(); // returns ()
factory.newSexp((IonValue[]) null); // returns null.sexp
For clarity, applications should prefer newEmptySexp() and
newNullSexp() instead.
| |
| newSexp | back to summary |
|---|---|
| public IonSexp newSexp(int[] values) Constructs a new
| |
| newSexp | back to summary |
|---|---|
| public IonSexp newSexp(long[] values) Constructs a new
| |
| newString | back to summary |
|---|---|
| public IonString newString(String value) Constructs a new Ion string with the given value.
| |
| newSymbol | back to summary |
|---|---|
| public IonSymbol newSymbol(String value) Constructs a new Ion symbol with the given value.
| |
| newSymbol | back to summary |
|---|---|
| public IonSymbol newSymbol(SymbolToken value) Constructs a new Ion symbol with the given symbol token. This is an "expert method": correct use requires deep understanding of the Ion binary format. You almost certainly don't want to use it.
| |
| newTimestamp | back to summary |
|---|---|
| public IonTimestamp newTimestamp(Timestamp value) Constructs a new
| |