doc / ch.tutteli.atrium.logic.utils / VarArgHelper

VarArgHelper

interface VarArgHelper<out T> (source)

Represents a parameter object used to express the arguments T, vararg T and provides utility functions to transform them.

Properties

expected

abstract val expected: T

The first argument in the argument list T, vararg T

mapArguments

open val mapArguments: ArgumentMapperBuilder<T>

Creates an ArgumentMapperBuilder which allows to map expected and otherExpected.

otherExpected

abstract val otherExpected: Array<out T>

The second argument in the argument list T, vararg T

Functions

toList

open fun toList(): List<T>

Returns the arguments as List.

Inheritors

All

class All<out T> : VarArgHelper<T>

Parameter object to express T, vararg T.

DirectoryEntries

class DirectoryEntries : VarArgHelper<String>

Parameter object which collects directory entries (as Strings). Use the function directoryEntry(String, vararg String) to create this representation.

Entries

class Entries<T : Any> : Group<(Expect<T>.() -> Unit)?>, VarArgHelper<(Expect<T>.() -> Unit)?>

Parameter object to express a Group of identification lambdas.

Entries

class Entries<T> : Group<(Expect<T>.() -> Unit)?>, VarArgHelper<(Expect<T>.() -> Unit)?>

Parameter object to express a Group of identification lambdas.

KeyValues

class KeyValues<out K, V : Any> : VarArgHelper<KeyWithValueCreator<K, V>>

Parameter object to express KeyWithValueCreator<K, V>, vararg KeyWithValueCreator<K, V>.

Pairs

class Pairs<out K, out V> : VarArgHelper<Pair<K, V>>

Parameter object to express Pair<K, V>, vararg Pair<K, V>.

RegexPatterns

class RegexPatterns : VarArgHelper<String>

Parameter object to express String, vararg String where they are treated as regex patterns.

Values

class Values<out T> : Group<T>, VarArgHelper<T>

Represents a Group of multiple values.

Values

class Values<out T> : Group<T>, VarArgHelper<T>

Represents a Group of multiple values.