EMPTY_ARRAY| Modifier and Type | Method and Description |
|---|---|
BigInteger |
bigIntegerValue()
Gets the content of this Ion
int as a Java
BigInteger value. |
IonInt |
clone()
Creates a copy of this value and all of its children.
|
IntegerSize |
getIntegerSize()
Gets an
IntegerSize representing the smallest-possible
Java type of the underlying content, or null if this is
null.int. |
int |
intValue()
Gets the content of this Ion
int as a Java
int value. |
long |
longValue()
Gets the content of this Ion
int as a Java
long value. |
void |
setValue(int value)
Sets the content of this value.
|
void |
setValue(long value)
Sets the content of this value.
|
void |
setValue(Number content)
Sets the content of this value.
|
accept, addTypeAnnotation, clearTypeAnnotations, equals, getContainer, getFieldName, getFieldNameSymbol, getSymbolTable, getSystem, getType, getTypeAnnotations, getTypeAnnotationSymbols, hashCode, hasTypeAnnotation, isNullValue, isReadOnly, makeReadOnly, removeFromContainer, removeTypeAnnotation, setTypeAnnotations, setTypeAnnotationSymbols, topLevelValue, toPrettyString, toString, toString, writeToint intValue()
throws NullValueException
int as a Java
int value.NullValueException - if this.isNullValue().long longValue()
throws NullValueException
int as a Java
long value.NullValueException - if this.isNullValue().BigInteger bigIntegerValue()
int as a Java
BigInteger value.BigInteger value,
or null if this is null.int.IntegerSize getIntegerSize()
IntegerSize representing the smallest-possible
Java type of the underlying content, or null if this is
null.int.IonReader.getIntegerSize()void setValue(int value)
void setValue(long value)
void setValue(Number content)
content - the new content of this int;
may be null to make this null.int.IonInt clone() throws UnknownSymbolException
IonValueIonValue.isReadOnly().
The cloned value will be created in the context of the same
ValueFactory as this instance; if you want a copy using a
different factory, then use ValueFactory.clone(IonValue)
instead.
clone in interface IonValueUnknownSymbolException - if any part of this value has unknown text but known Sid for
its field name, annotation or symbol.