DecimalScheme

data class DecimalScheme(myName: String, minValue: Double, maxValue: Double, decimalCount: Int, showTrailingZeroes: Boolean, groupingSeparator: String, decimalSeparator: String, prefix: String, suffix: String) : Scheme<DecimalScheme>

Contains settings for generating random decimals.

See also

Constructors

DecimalScheme
Link copied to clipboard
fun 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, prefix: String = DEFAULT_PREFIX, suffix: String = DEFAULT_SUFFIX)

Types

Companion
Link copied to clipboard
object Companion
Holds constants.

Functions

copyAs
Link copied to clipboard
open override fun copyAs(name: String): DecimalScheme
Returns a copy of this scheme that has the given name.
copyFrom
Link copied to clipboard
open override fun copyFrom(other: DecimalScheme)
Shallowly copies the state of other into this.
getDisplayName
Link copied to clipboard
@NotNull()
@Nls()
open fun getDisplayName(): @NotNull() @Nls() String
getName
Link copied to clipboard
open override fun getName(): String
Same as myName.
safeSetDecimalSeparator
Link copied to clipboard
fun safeSetDecimalSeparator(decimalSeparator: String?)
Sets the decimal separator safely to ensure that exactly one character is set.
safeSetGroupingSeparator
Link copied to clipboard
fun safeSetGroupingSeparator(groupingSeparator: String?)
Sets the grouping separator safely to ensure that exactly one character is set.

Properties

decimalCount
Link copied to clipboard
var decimalCount: Int
The number of decimals to display.
decimalSeparator
Link copied to clipboard
var decimalSeparator: String
The character that should separate decimals.
groupingSeparator
Link copied to clipboard
var groupingSeparator: String
The character that should separate groups.
maxValue
Link copied to clipboard
var maxValue: Double
The maximum value to be generated, inclusive.
minValue
Link copied to clipboard
var minValue: Double
The minimum value to be generated, inclusive.
myName
Link copied to clipboard
open override var myName: String
The name of the scheme.
prefix
Link copied to clipboard
var prefix: String
The string to prepend to the generated value.
showTrailingZeroes
Link copied to clipboard
var showTrailingZeroes: Boolean
Whether to include trailing zeroes in the decimals.
suffix
Link copied to clipboard
var suffix: String
The string to append to the generated value.

Sources

jvm source
Link copied to clipboard