Class LongValue
- java.lang.Object
-
- com.healthmarketscience.jackcess.impl.expr.BaseValue
-
- com.healthmarketscience.jackcess.impl.expr.BaseNumericValue
-
- com.healthmarketscience.jackcess.impl.expr.LongValue
-
- All Implemented Interfaces:
Value
public class LongValue extends BaseNumericValue
- Author:
- James Ahlborn
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.healthmarketscience.jackcess.expr.Value
Value.Type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget()BigDecimalgetAsBigDecimal(LocaleContext ctx)booleangetAsBoolean(LocaleContext ctx)IntegergetAsLongInt(LocaleContext ctx)StringgetAsString(LocaleContext ctx)Value.TypegetType()-
Methods inherited from class com.healthmarketscience.jackcess.impl.expr.BaseNumericValue
getAsDateTimeValue, getAsDouble
-
Methods inherited from class com.healthmarketscience.jackcess.impl.expr.BaseValue
getAsLocalDateTime, isNull, toString
-
-
-
-
Constructor Detail
-
LongValue
public LongValue(Integer 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
-
getAsLongInt
public Integer getAsLongInt(LocaleContext ctx)
- Specified by:
getAsLongIntin interfaceValue- Overrides:
getAsLongIntin classBaseNumericValue- Returns:
- this primitive value converted (rounded) to an int
-
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
-
-