intellij-randomness / com.fwdekker.randomness.decimal / DecimalSettings

DecimalSettings

class DecimalSettings : Settings<DecimalSettings>

Contains settings for generating random decimals.

See Also

DecimalInsertAction

DecimalSettingsAction

DecimalSettingsDialog

Constructors

<init>

DecimalSettings()

Contains settings for generating random decimals.

Properties

decimalCount

var decimalCount: Int

The number of decimals to display.

decimalSeparator

var decimalSeparator: String

The character that should separate decimals.

groupingSeparator

var groupingSeparator: String

The character that should separate groups.

maxValue

var maxValue: Double

The maximum value to be generated, inclusive.

minValue

var minValue: Double

The minimum value to be generated, inclusive.

Functions

getState

fun getState(): DecimalSettings

Returns this.

loadState

fun loadState(state: DecimalSettings): Unit

Copies the fields of state to this.

Companion Object Properties

default

val default: DecimalSettings

The persistent DecimalSettings instance.

DEFAULT_DECIMAL_COUNT

const val DEFAULT_DECIMAL_COUNT: Int

The default value of the decimalCount field.

DEFAULT_DECIMAL_SEPARATOR

const val DEFAULT_DECIMAL_SEPARATOR: String

The default value of the decimalSeparator field.

DEFAULT_GROUPING_SEPARATOR

const val DEFAULT_GROUPING_SEPARATOR: String

The default value of the groupingSeparator field.

DEFAULT_MAX_VALUE

const val DEFAULT_MAX_VALUE: Double

The default value of the maxValue field.

DEFAULT_MIN_VALUE

const val DEFAULT_MIN_VALUE: Double

The default value of the minValue field.