ArrayScheme

data class ArrayScheme(myName: String, count: Int, brackets: String, separator: String, isSpaceAfterSeparator: Boolean) : Scheme<ArrayScheme>

Contains settings for generating arrays of other types of random values.

See also

Constructors

ArrayScheme
Link copied to clipboard
fun ArrayScheme(myName: String = DEFAULT_NAME, count: Int = DEFAULT_COUNT, brackets: String = DEFAULT_BRACKETS, separator: String = DEFAULT_SEPARATOR, isSpaceAfterSeparator: Boolean = DEFAULT_SPACE_AFTER_SEPARATOR)

Types

Companion
Link copied to clipboard
object Companion
Holds constants.

Functions

arrayify
Link copied to clipboard
fun arrayify(strings: Collection<String>): String
Turns a collection of strings into a single string based on the fields of this ArraySettings object.
copyAs
Link copied to clipboard
open override fun copyAs(name: String): ArrayScheme
Returns a copy of this scheme that has the given name.
copyFrom
Link copied to clipboard
open override fun copyFrom(other: ArrayScheme)
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

brackets
Link copied to clipboard
var brackets: String
The brackets to surround arrays with.
count
Link copied to clipboard
var count: Int
The number of elements to generate.
isSpaceAfterSeparator
Link copied to clipboard
var isSpaceAfterSeparator: Boolean
True iff a space should be placed after each separator.
myName
Link copied to clipboard
open override var myName: String
The name of the scheme.
separator
Link copied to clipboard
var separator: String
The string to place between generated elements.

Sources

jvm source
Link copied to clipboard