data class DecimalSettings : Settings<DecimalSettings>
Contains settings for generating random decimals.
DecimalSettings(minValue: Double = DEFAULT_MIN_VALUE, maxValue: Double = DEFAULT_MAX_VALUE, decimalCount: Int = DEFAULT_DECIMAL_COUNT, showTrailingZeroes: Boolean = DEFAULT_SHOW_TRAILING_ZEROES, groupingSeparator: String = DEFAULT_GROUPING_SEPARATOR, decimalSeparator: String = DEFAULT_DECIMAL_SEPARATOR)
Contains settings for generating random decimals. |
var decimalCount: Int
The number of decimals to display. |
|
var decimalSeparator: String
The character that should separate decimals. |
|
var groupingSeparator: String
The character that should separate groups. |
|
var maxValue: Double
The maximum value to be generated, inclusive. |
|
var minValue: Double
The minimum value to be generated, inclusive. |
|
var showTrailingZeroes: Boolean
Whether to include trailing zeroes in the decimals. |
fun copyState(): DecimalSettings
Returns a shallow copy of this instance. |
|
fun getState(): DecimalSettings
Returns |
|
fun loadState(state: DecimalSettings): Unit
Copies the fields of |
|
fun safeSetDecimalSeparator(decimalSeparator: String?): Unit
Sets the decimal separator safely to ensure that exactly one character is set. |
|
fun safeSetGroupingSeparator(groupingSeparator: String?): Unit
Sets the grouping separator safely to ensure that exactly one character is set. |
val default: DecimalSettings
The persistent |
|
const val DEFAULT_DECIMAL_COUNT: Int
The default value of the decimalCount field. |
|
const val DEFAULT_DECIMAL_SEPARATOR: String
The default value of the decimalSeparator field. |
|
const val DEFAULT_GROUPING_SEPARATOR: String
The default value of the groupingSeparator field. |
|
const val DEFAULT_MAX_VALUE: Double
The default value of the maxValue field. |
|
const val DEFAULT_MIN_VALUE: Double
The default value of the minValue field. |
|
const val DEFAULT_SHOW_TRAILING_ZEROES: Boolean
The default value of the showTrailingZeroes field. |