data class StringSettings : Settings<StringSettings>
Contains settings for generating random strings.
StringSettings(minLength: Int = DEFAULT_MIN_LENGTH, maxLength: Int = DEFAULT_MAX_LENGTH, enclosure: String = DEFAULT_ENCLOSURE, capitalization: CapitalizationMode = DEFAULT_CAPITALIZATION, symbolSets: Map<String, String> = DEFAULT_SYMBOL_SETS.toMap(), activeSymbolSets: Map<String, String> = DEFAULT_ACTIVE_SYMBOL_SETS.toMap())
Contains settings for generating random strings. |
var activeSymbolSetList: Collection<SymbolSet>
A list view of the |
|
var activeSymbolSets: Map<String, String>
The symbol sets that are actually used for generating strings; a subset of symbolSets. |
|
var capitalization: CapitalizationMode
The capitalization mode of the generated string. |
|
var enclosure: String
The string that encloses the generated string on both sides. |
|
var maxLength: Int
The maximum length of the generated string, inclusive. |
|
var minLength: Int
The minimum length of the generated string, inclusive. |
|
var symbolSetList: Collection<SymbolSet>
A list view of the |
|
var symbolSets: Map<String, String>
The symbol sets that are available for generating strings. |
fun copyState(): StringSettings
Returns a shallow copy of this instance. |
|
fun getState(): StringSettings
Returns |
|
fun loadState(state: StringSettings): Unit
Copies the fields of |
val default: StringSettings
The persistent |
|
val DEFAULT_ACTIVE_SYMBOL_SETS: Map<String, String>
The default value of the activeSymbolSets field. |
|
val DEFAULT_CAPITALIZATION: CapitalizationMode
The default value of the capitalization field. |
|
const val DEFAULT_ENCLOSURE: String
The default value of the enclosure field. |
|
const val DEFAULT_MAX_LENGTH: Int
The default value of the maxLength field. |
|
const val DEFAULT_MIN_LENGTH: Int
The default value of the minLength field. |
|
val DEFAULT_SYMBOL_SETS: Map<String, String>
The default value of the symbolSets field. |