public class Configuration extends Object
| Constructor and Description |
|---|
Configuration() |
| Modifier and Type | Method and Description |
|---|---|
ConversionMode |
getConversionMode()
Returns the conversion mode applied in supported operations if no specific mode is set.
|
int |
getScale()
Returns the maximum number of decimal places applied if double-precision conversion
mode is set.
|
TimeUnit |
getTimeUnit()
Returns the time unit maintained by default if no specific time unit is specified.
|
void |
setConversionMode(ConversionMode conversionMode)
Defines the default conversion mode to be applied in supported operations if no
specific mode is set.
|
void |
setScale(int scale)
Sets a maximum number of decimal places to be applied if double-precision conversion
mode is set.
|
void |
setTimeUnit(TimeUnit timeUnit)
Defines the time unit to be maintained by default if no specific time unit is
specified.
|
public TimeUnit getTimeUnit()
public void setTimeUnit(TimeUnit timeUnit)
timeUnit - the TimeUnit to setNullPointerException - if the specified time unit is nullpublic ConversionMode getConversionMode()
public void setConversionMode(ConversionMode conversionMode)
conversionMode - the ConversionMode to setNullPointerException - if the specified conversion mode is nullpublic int getScale()
public void setScale(int scale)
scale - a number between 0 and 16 to be setIllegalArgumentException - if the specified number is outside the allowed rangeCopyright © 2020. All rights reserved.