doc / ch.tutteli.atrium.api.cc.infix.en_GB.creating.list.get.builders / ListGetOption

ListGetOption

interface ListGetOption<E : Any, T : List<E>>

Represents the extension point for another option after a get index-step within a sophisticated get assertion building process for List.

Parameters

E - The element type of the List.

T - A subtype of List.

Properties

index

abstract val index: Int

The given index which will be used to perform the List.get.

plant

abstract val plant: Assert<T>

The AssertionPlant for which this assertion is created

Functions

assertIt

abstract infix fun assertIt(assertionCreator: Assert<E>.() -> Unit): Assert<T>

Makes the assertion that the given index is within the bounds of Assert.subject and that the corresponding entry holds all assertions the given assertionCreator might create for it.

Companion Object Functions

create

fun <E : Any, T : List<E>> create(plant: Assert<T>, index: Int): ListGetOption<E, T>