ArrayScheme

data class ArrayScheme(    var myName: String = DEFAULT_NAME,     var count: Int = DEFAULT_COUNT,     var brackets: String = DEFAULT_BRACKETS,     var separator: String = DEFAULT_SEPARATOR,     var isSpaceAfterSeparator: Boolean = DEFAULT_SPACE_AFTER_SEPARATOR) : Scheme<ArrayScheme>

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

See also

Constructors

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

Link copied to clipboard
object Companion

Holds constants.

Functions

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.

Link copied to clipboard
open override fun copyAs(name: String): ArrayScheme

Returns a copy of this scheme that has the given name.

Link copied to clipboard
open override fun copyFrom(other: ArrayScheme)

Shallowly copies the state of other into this.

Link copied to clipboard
@NotNull
@Nls
open fun getDisplayName(): @NotNull @Nls String
Link copied to clipboard
open override fun getName(): String

Same as myName.

Properties

Link copied to clipboard
var brackets: String

The brackets to surround arrays with.

Link copied to clipboard
var count: Int

The number of elements to generate.

Link copied to clipboard
var isSpaceAfterSeparator: Boolean

True iff a space should be placed after each separator.

Link copied to clipboard
open override var myName: String

The name of the scheme.

Link copied to clipboard
var separator: String

The string to place between generated elements.

Sources

Link copied to clipboard