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

ListGetNullableOption

interface ListGetNullableOption<E, T : List<E>>
Deprecated: Switch from api-cc-infix-en_GB to api-infix-en_GB; will be removed with 1.0.0 -- see https://github.com/robstoll/atrium/releases/tag/v0.12.0#migration for migration hints and scripts.

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: AssertionPlantNullable<E>.() -> Unit): Assert<T>

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

Companion Object Functions

create

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