doc / ch.tutteli.atrium.domain.creating.basic.contains / Contains / Builder

Builder

interface Builder<out T : Any, out S : SearchBehaviour> (source)

The entry point of the contract, containing the plant to which the sophisticated contain assertion should be added as well as the chosen searchBehaviour.

The searchBehaviour might me modified in which case it is recommended that a new Builder is created (retain immutability).

Properties

plant

abstract val plant: AssertionPlant<T>

The AssertionPlant from which this building process started and to which the resulting Assertion should be added.

searchBehaviour

abstract val searchBehaviour: S

The chosen SearchBehaviour.

Inheritors

Builder

interface Builder<out T : CharSequence, out S : SearchBehaviour> : Builder<T, S>

The entry point of the CharSequence contains contract, containing the plant to which the sophisticated contain assertion should be added as well as the chosen searchBehaviour.

Builder

interface Builder<out E, out T : Iterable<E>, out S : SearchBehaviour> : Builder<T, S>

The entry point of the Iterable contains contract, containing the plant to which the sophisticated contain assertion should be added as well as the chosen searchBehaviour.

ContainsBuilder

abstract class ContainsBuilder<out T : Any, out S : SearchBehaviour> : Builder<T, S>

Represents the deprecated base class for builders representing the entry point of the process of building a sophisticated contains assertion.