atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.utils / Group

Group

interface Group<out T> (source)

Represents a group of T.

Functions

toList

abstract fun toList(): List<T>

Returns the members of the group as List.

Extension Functions

asExpect

fun <T, A> A.asExpect(): <ERROR CLASS><T>
fun <T : Any, A> A.asExpect(assertionCreator: <ERROR CLASS><T>.() -> Unit): A

Turns Assert or AssertionPlantNullable into an Expect so that you can use new functionality which is not available on Assert/AssertionPlantNullable.

Inheritors

GroupWithNullableEntries

interface GroupWithNullableEntries<out T> : Group<T>

Represents a group of T (where T: Any?) which can be converted to a List<T>

GroupWithoutNullableEntries

interface GroupWithoutNullableEntries<out T> : Group<T>

Represents a group of T (where T: Any) which can be converted to a List<T>