StringScheme

data class StringScheme(myName: String, minLength: Int, maxLength: Int, enclosure: String, capitalization: CapitalizationMode, serializedSymbolSets: Map<String, String>, serializedActiveSymbolSets: Map<String, String>, excludeLookAlikeSymbols: Boolean) : Scheme<StringScheme>

Contains settings for generating random strings.

See also

Constructors

StringScheme
Link copied to clipboard
fun StringScheme(myName: String = DEFAULT_NAME, minLength: Int = DEFAULT_MIN_LENGTH, maxLength: Int = DEFAULT_MAX_LENGTH, enclosure: String = DEFAULT_ENCLOSURE, capitalization: CapitalizationMode = DEFAULT_CAPITALIZATION, serializedSymbolSets: Map<String, String> = DEFAULT_SYMBOL_SETS.toMap(), serializedActiveSymbolSets: Map<String, String> = DEFAULT_ACTIVE_SYMBOL_SETS.toMap(), excludeLookAlikeSymbols: Boolean = DEFAULT_EXCLUDE_LOOK_ALIKE_SYMBOLS)

Types

Companion
Link copied to clipboard
object Companion
Holds constants.

Functions

copyAs
Link copied to clipboard
open override fun copyAs(name: String): StringScheme
Returns a copy of this scheme that has the given name.
copyFrom
Link copied to clipboard
open override fun copyFrom(other: StringScheme)
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.

Properties

activeSymbolSetList
Link copied to clipboard
var activeSymbolSetList: Collection<SymbolSet>
A list view of the SymbolSet objects described by activeSymbolSets.
activeSymbolSets
Link copied to clipboard
var activeSymbolSets: Map<String, String>
Same as activeSymbolSets, except that serialized emoji have been deserialized.
capitalization
Link copied to clipboard
var capitalization: CapitalizationMode
The capitalization mode of the generated string.
enclosure
Link copied to clipboard
var enclosure: String
The string that encloses the generated string on both sides.
excludeLookAlikeSymbols
Link copied to clipboard
var excludeLookAlikeSymbols: Boolean
Whether the symbols in SymbolSet.lookAlikeCharacters should be excluded.
maxLength
Link copied to clipboard
var maxLength: Int
The maximum length of the generated string, inclusive.
minLength
Link copied to clipboard
var minLength: Int
The minimum length of the generated string, inclusive.
myName
Link copied to clipboard
open override var myName: String
The name of the scheme.
serializedActiveSymbolSets
Link copied to clipboard
var serializedActiveSymbolSets: Map<String, String>
The symbol sets that are actually used for generating strings; a subset of symbolSets.
serializedSymbolSets
Link copied to clipboard
var serializedSymbolSets: Map<String, String>
The symbol sets that are available for generating strings.
symbolSetList
Link copied to clipboard
var symbolSetList: Collection<SymbolSet>
A list view of the SymbolSet objects described by symbolSets.
symbolSets
Link copied to clipboard
var symbolSets: Map<String, String>
Same as symbolSets, except that serialized emoji have been deserialized.

Sources

jvm source
Link copied to clipboard