data class DecimalScheme : Scheme<DecimalScheme>
Contains settings for generating random decimals.
DecimalScheme(myName: String = DEFAULT_NAME, 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 myName: String
The name of the scheme. |
|
var showTrailingZeroes: Boolean
Whether to include trailing zeroes in the decimals. |
fun copyAs(name: String): DecimalScheme
Returns a copy of this scheme that has the given name. |
|
fun copyFrom(other: DecimalScheme): Unit
Shallowly copies the state of other into |
|
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. |
open fun getName(): String
Same as myName. |
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. |