public class NumericValue extends DefaultValue
Constructor and Description |
---|
NumericValue(BigDecimal bigDecimal) |
Modifier and Type | Method and Description |
---|---|
BigDecimal |
asBigDecimal()
Get the value as a BigDecimal.
|
BigInteger |
asBigInteger()
Get the value as BigInteger.
|
double |
asDouble()
Get the value as a double.
|
long |
asLong()
Get the value as a long.
|
String |
asString()
Get the value as a String.
|
boolean |
equals(Object o) |
int |
hashCode() |
asBoolean, asDate, isNull
public NumericValue(BigDecimal bigDecimal)
public String asString()
com.sdl.delivery.configuration.Value
asString
in interface com.sdl.delivery.configuration.Value
asString
in class DefaultValue
public double asDouble()
com.sdl.delivery.configuration.Value
asDouble
in interface com.sdl.delivery.configuration.Value
asDouble
in class DefaultValue
public long asLong()
com.sdl.delivery.configuration.Value
asLong
in interface com.sdl.delivery.configuration.Value
asLong
in class DefaultValue
public BigInteger asBigInteger()
com.sdl.delivery.configuration.Value
asBigInteger
in interface com.sdl.delivery.configuration.Value
asBigInteger
in class DefaultValue
public BigDecimal asBigDecimal()
com.sdl.delivery.configuration.Value
asBigDecimal
in interface com.sdl.delivery.configuration.Value
asBigDecimal
in class DefaultValue
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries