data class IntegerScheme : Scheme<IntegerScheme>
Contains settings for generating random integers.
IntegerScheme(myName: String = DEFAULT_NAME, minValue: Long = DEFAULT_MIN_VALUE, maxValue: Long = DEFAULT_MAX_VALUE, base: Int = DEFAULT_BASE, groupingSeparator: String = DEFAULT_GROUPING_SEPARATOR)
Contains settings for generating random integers. |
var base: Int
The base the generated value should be displayed in. |
|
var groupingSeparator: String
The character that should separate groups. |
|
var maxValue: Long
The maximum value to be generated, inclusive. |
|
var minValue: Long
The minimum value to be generated, inclusive. |
|
var myName: String
The name of the scheme. |
fun copyAs(name: String): IntegerScheme
Returns a copy of this scheme that has the given name. |
|
fun copyFrom(other: IntegerScheme): Unit
Shallowly copies the state of other into |
|
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 DECIMAL_BASE: Int
The definition of decimal base. |
|
const val DEFAULT_BASE: Int
The default value of the base field. |
|
const val DEFAULT_GROUPING_SEPARATOR: String
The default value of the groupingSeparator field. |
|
const val DEFAULT_MAX_VALUE: Long
The default value of the maxValue field. |
|
const val DEFAULT_MIN_VALUE: Long
The default value of the minValue field. |
|
const val MAX_BASE: Int
The maximum value of the base field. |
|
const val MIN_BASE: Int
The minimum value of the base field. |