Package com.amazon.ion.impl
Class _Private_ScalarConversions.ValueVariant
- java.lang.Object
-
- com.amazon.ion.impl._Private_ScalarConversions.ValueVariant
-
- Enclosing class:
- _Private_ScalarConversions
public static final class _Private_ScalarConversions.ValueVariant extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ValueVariant()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValue(boolean value)
void
addValue(double value)
void
addValue(int value)
void
addValue(long value)
void
addValue(Decimal value)
void
addValue(Timestamp value)
void
addValue(java.lang.String value)
void
addValue(java.math.BigDecimal value)
void
addValue(java.math.BigInteger value)
void
addValue(java.util.Date value)
void
addValueToNull(IonType t)
boolean
can_convert(int new_type)
void
cast(int castfnid)
void
clear()
int
get_conversion_fnid(int new_type)
int
getAuthoritativeType()
java.math.BigDecimal
getBigDecimal()
java.math.BigInteger
getBigInteger()
boolean
getBoolean()
java.util.Date
getDate()
Decimal
getDecimal()
double
getDouble()
int
getInt()
long
getLong()
IonType
getNullType()
java.lang.String
getString()
Timestamp
getTimestamp()
boolean
hasDatetimeType()
boolean
hasNumericType()
boolean
hasValueOfType(int value_type)
boolean
isEmpty()
boolean
isNull()
static boolean
isNumericType(int type_idx)
void
setAuthoritativeType(int value_type)
void
setValue(boolean value)
void
setValue(double value)
void
setValue(int value)
void
setValue(long value)
void
setValue(Decimal value)
void
setValue(Timestamp value)
void
setValue(java.lang.String value)
void
setValue(java.math.BigInteger value)
void
setValue(java.util.Date value)
void
setValueToNull(IonType t)
-
-
-
Method Detail
-
isEmpty
public final boolean isEmpty()
-
clear
public final void clear()
-
hasValueOfType
public final boolean hasValueOfType(int value_type)
-
hasNumericType
public final boolean hasNumericType()
-
isNumericType
public static final boolean isNumericType(int type_idx)
-
hasDatetimeType
public final boolean hasDatetimeType()
-
setAuthoritativeType
public final void setAuthoritativeType(int value_type)
-
setValueToNull
public final void setValueToNull(IonType t)
-
setValue
public final void setValue(boolean value)
-
setValue
public final void setValue(int value)
-
setValue
public final void setValue(long value)
-
setValue
public final void setValue(double value)
-
setValue
public final void setValue(java.lang.String value)
-
setValue
public final void setValue(java.math.BigInteger value)
-
setValue
public final void setValue(Decimal value)
-
setValue
public final void setValue(java.util.Date value)
-
setValue
public final void setValue(Timestamp value)
-
addValueToNull
public final void addValueToNull(IonType t)
-
addValue
public final void addValue(boolean value)
-
addValue
public final void addValue(int value)
-
addValue
public final void addValue(long value)
-
addValue
public final void addValue(double value)
-
addValue
public final void addValue(java.lang.String value)
-
addValue
public final void addValue(java.math.BigInteger value)
-
addValue
public final void addValue(java.math.BigDecimal value)
-
addValue
public final void addValue(Decimal value)
-
addValue
public final void addValue(java.util.Date value)
-
addValue
public final void addValue(Timestamp value)
-
getAuthoritativeType
public final int getAuthoritativeType()
-
isNull
public final boolean isNull()
-
getNullType
public final IonType getNullType()
-
getBoolean
public final boolean getBoolean()
-
getInt
public final int getInt()
-
getLong
public final long getLong()
-
getDouble
public final double getDouble()
-
getString
public final java.lang.String getString()
-
getBigInteger
public final java.math.BigInteger getBigInteger()
-
getBigDecimal
public final java.math.BigDecimal getBigDecimal()
-
getDecimal
public final Decimal getDecimal()
-
getDate
public final java.util.Date getDate()
-
getTimestamp
public final Timestamp getTimestamp()
-
can_convert
public final boolean can_convert(int new_type)
-
get_conversion_fnid
public final int get_conversion_fnid(int new_type)
-
cast
public final void cast(int castfnid)
-
-