Class DoubleValue
- java.lang.Object
-
- com.healthmarketscience.jackcess.impl.expr.BaseValue
-
- com.healthmarketscience.jackcess.impl.expr.BaseNumericValue
-
- com.healthmarketscience.jackcess.impl.expr.DoubleValue
-
- All Implemented Interfaces:
Value
public class DoubleValue extends BaseNumericValue
- Author:
- James Ahlborn
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.healthmarketscience.jackcess.expr.Value
Value.Type
-
-
Constructor Summary
Constructors Constructor Description DoubleValue(Double val)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget()BigDecimalgetAsBigDecimal(LocaleContext ctx)booleangetAsBoolean(LocaleContext ctx)DoublegetAsDouble(LocaleContext ctx)StringgetAsString(LocaleContext ctx)Value.TypegetType()-
Methods inherited from class com.healthmarketscience.jackcess.impl.expr.BaseNumericValue
getAsDateTimeValue, getAsLongInt
-
Methods inherited from class com.healthmarketscience.jackcess.impl.expr.BaseValue
getAsLocalDateTime, isNull, toString
-
-
-
-
Constructor Detail
-
DoubleValue
public DoubleValue(Double val)
-
-
Method Detail
-
getType
public Value.Type getType()
- Returns:
- the type of this value
-
get
public Object get()
- Returns:
- the raw primitive value
-
getAsBoolean
public boolean getAsBoolean(LocaleContext ctx)
- Specified by:
getAsBooleanin interfaceValue- Overrides:
getAsBooleanin classBaseValue- Returns:
- this primitive value converted to a boolean
-
getAsDouble
public Double getAsDouble(LocaleContext ctx)
- Specified by:
getAsDoublein interfaceValue- Overrides:
getAsDoublein classBaseNumericValue- Returns:
- this primitive value converted (rounded) to a double
-
getAsBigDecimal
public BigDecimal getAsBigDecimal(LocaleContext ctx)
- Specified by:
getAsBigDecimalin interfaceValue- Overrides:
getAsBigDecimalin classBaseValue- Returns:
- this primitive value converted to a BigDecimal
-
getAsString
public String getAsString(LocaleContext ctx)
- Specified by:
getAsStringin interfaceValue- Overrides:
getAsStringin classBaseValue- Returns:
- this primitive value converted to a String
-
-