EMPTY_ARRAY
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
bigDecimalValue()
Gets the value of this Ion
int as a BigDecimal . |
java.math.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(java.lang.Number content)
Sets the content of this value.
|
isNumericValue
accept, addTypeAnnotation, clearTypeAnnotations, equals, getContainer, getFieldId, getFieldName, getFieldNameSymbol, getSymbolTable, getSystem, getType, getTypeAnnotations, getTypeAnnotationSymbols, hashCode, hasTypeAnnotation, isNullValue, isReadOnly, makeReadOnly, removeFromContainer, removeTypeAnnotation, setTypeAnnotations, setTypeAnnotationSymbols, topLevelValue, toPrettyString, toString, toString, writeTo
int 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()
.java.math.BigInteger bigIntegerValue()
int
as a Java
BigInteger
value.BigInteger
value,
or null
if this is null.int
.java.math.BigDecimal bigDecimalValue()
int
as a BigDecimal
.
The scale of the BigDecimal
is zero.bigDecimalValue
in interface IonNumber
BigDecimal
value,
or null
if this.isNullValue()
.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(java.lang.Number content)
content
- the new content of this int;
may be null
to make this null.int
.IonInt clone() throws UnknownSymbolException
IonValue
IonValue.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 IonValue
UnknownSymbolException
- if any part of this value has unknown text but known Sid for
its field name, annotation or symbol.