public abstract class DefaultValue extends Object implements com.sdl.delivery.configuration.Value
Note: this is example code only, a version of this class may be be included in the common config module at some point in the future.
Constructor and Description |
---|
DefaultValue() |
Modifier and Type | Method and Description |
---|---|
BigDecimal |
asBigDecimal()
Get the value as a BigDecimal.
|
BigInteger |
asBigInteger()
Get the value as BigInteger.
|
boolean |
asBoolean()
Get the value as a boolean.
|
Calendar |
asDate()
Get the value as a date.
|
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 |
isNull()
Returns true if the value is null.
|
public boolean isNull()
com.sdl.delivery.configuration.Value
isNull
in interface com.sdl.delivery.configuration.Value
public String asString()
com.sdl.delivery.configuration.Value
asString
in interface com.sdl.delivery.configuration.Value
public boolean asBoolean()
com.sdl.delivery.configuration.Value
asBoolean
in interface com.sdl.delivery.configuration.Value
public Calendar asDate()
com.sdl.delivery.configuration.Value
asDate
in interface com.sdl.delivery.configuration.Value
public double asDouble()
com.sdl.delivery.configuration.Value
asDouble
in interface com.sdl.delivery.configuration.Value
public long asLong()
com.sdl.delivery.configuration.Value
asLong
in interface com.sdl.delivery.configuration.Value
public BigInteger asBigInteger()
com.sdl.delivery.configuration.Value
asBigInteger
in interface com.sdl.delivery.configuration.Value
public BigDecimal asBigDecimal()
com.sdl.delivery.configuration.Value
asBigDecimal
in interface com.sdl.delivery.configuration.Value
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries