data class ArraySettings : Settings<ArraySettings>
Contains settings for generating arrays of other types of random values.
ArraySettings(count: Int = DEFAULT_COUNT, brackets: String = DEFAULT_BRACKETS, separator: String = DEFAULT_SEPARATOR, isSpaceAfterSeparator: Boolean = DEFAULT_SPACE_AFTER_SEPARATOR)
Contains settings for generating arrays of other types of random values. |
var brackets: String
The brackets to surround arrays with. |
|
var count: Int
The number of elements to generate. |
|
var isSpaceAfterSeparator: Boolean
True iff a space should be placed after each separator. |
|
var separator: String
The string to place between generated elements. |
fun arrayify(strings: Collection<String>): String
Turns a collection of strings into a single string based on the fields of this |
|
fun copyState(): ArraySettings
Returns a shallow copy of this instance. |
|
fun getState(): ArraySettings
Returns |
|
fun loadState(state: ArraySettings): Unit
Copies the fields of |
val default: ArraySettings
The persistent |
|
const val DEFAULT_BRACKETS: String
The default value of the brackets field. |
|
const val DEFAULT_COUNT: Int
The default value of the count field. |
|
const val DEFAULT_SEPARATOR: String
The default value of the separator field. |
|
const val DEFAULT_SPACE_AFTER_SEPARATOR: Boolean
The default value of the isSpaceAfterSeparator field. |