doc / ch.tutteli.atrium.domain.creating.charsequence.contains / CharSequenceContains / Builder

Builder

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

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.

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

Inherited 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.

Extension Properties

ignoriereGrossKleinschreibung

val <T : CharSequence> Builder<T, NoOpSearchBehaviour>.ignoriereGrossKleinschreibung: Builder<T, IgnoringCaseSearchBehaviour>

Defines that the search behaviour ignore case shall be applied to this sophisticated contains assertion.

ignoringCase

val <T : CharSequence> Builder<T, NoOpSearchBehaviour>.ignoringCase: Builder<T, IgnoringCaseSearchBehaviour>

Defines that the v behaviour ignore case shall be applied to this sophisticated contains assertion.

ignoringCase

val <T : CharSequence> Builder<T, NoOpSearchBehaviour>.ignoringCase: Builder<T, IgnoringCaseSearchBehaviour>

Defines that the decoration behaviour ignore case shall be applied to this sophisticated contains assertion.

Extension Functions

atLeast

fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.atLeast(times: Int): AtLeastCheckerOption<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the value which we are looking for occurs at least number of times within the search input.

atLeast

fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.atLeast(times: Int): AtLeastCheckerOption<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the object which we are looking for, occurs at least number of times within the search input.

atLeast

infix fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.atLeast(times: Int): AtLeastCheckerOption<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the value which we are looking for occurs at least number of times within the search input.

atLeast

infix fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.atLeast(times: Int): AtLeastCheckerOption<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the object which we are looking for, occurs at least number of times within the search input.

atMost

fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.atMost(times: Int): AtMostCheckerOption<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the value which we are looking for occurs at least once but at most number of times within the search input.

atMost

fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.atMost(times: Int): AtMostCheckerOption<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the object which we are looking for, occurs at least once but at most number of times within the search input.

atMost

infix fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.atMost(times: Int): AtMostCheckerOption<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the value which we are looking for occurs at least once but at most number of times within the search input.

atMost

infix fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.atMost(times: Int): AtMostCheckerOption<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the object which we are looking for, occurs at least once but at most number of times within the search input.

exactly

fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.exactly(times: Int): ExactlyCheckerOption<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the value which we are looking for occurs exactly number of times within the search input.

exactly

fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.exactly(times: Int): ExactlyCheckerOption<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the object which we are looking for, occurs exactly number of times within the search input.

exactly

infix fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.exactly(times: Int): ExactlyCheckerOption<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the value which we are looking for occurs exactly number of times within the search input.

exactly

infix fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.exactly(times: Int): ExactlyCheckerOption<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the object which we are looking for, occurs exactly number of times within the search input.

genau

fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.genau(times: Int): ExactlyCheckerOption<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the value which we are looking for occurs exactly number of times within the search input.

hoechstens

fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.hoechstens(times: Int): AtMostCheckerOption<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the value which we are looking for occurs at least once but at most number of times within the search input.

ignoring

infix fun <T : CharSequence> Builder<T, NoOpSearchBehaviour>.ignoring(case: case): Builder<T, IgnoringCaseSearchBehaviour>

Defines that the search behaviour ignore case shall be applied to this sophisticated contains assertion.

ignoring

infix fun <T : CharSequence> Builder<T, NoOpSearchBehaviour>.ignoring(case: case): Builder<T, IgnoringCaseSearchBehaviour>

Defines that the decoration behaviour ignore case shall be applied to this sophisticated contains assertion.

nichtOderHoechstens

fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.nichtOderHoechstens(times: Int): NotOrAtMostCheckerOption<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the value which we are looking for occurs not at all or at most number of times within the search input.

notOrAtMost

fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.notOrAtMost(times: Int): NotOrAtMostCheckerOption<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the value which we are looking for occurs not at all or at most number of times within the search input.

notOrAtMost

fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.notOrAtMost(times: Int): NotOrAtMostCheckerOption<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the object which we are looking for, occurs not at all or at most number of times within the search input.

notOrAtMost

infix fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.notOrAtMost(times: Int): NotOrAtMostCheckerOption<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the value which we are looking for occurs not at all or at most number of times within the search input.

notOrAtMost

infix fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.notOrAtMost(times: Int): NotOrAtMostCheckerOption<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the object which we are looking for, occurs not at all or at most number of times within the search input.

zumindest

fun <T : CharSequence, S : SearchBehaviour> Builder<T, S>.zumindest(times: Int): AtLeastCheckerOption<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the value which we are looking for occurs at least number of times within the search input.

Inheritors

CharSequenceContainsBuilder

class CharSequenceContainsBuilder<out T : CharSequence, out S : SearchBehaviour> : ContainsBuilder<T, S>, Builder<T, S>

Represents the deprecated entry point of the fluent API of sophisticated contains assertions. It contains the plant for which the Assertion shall be build as well as the decoration behaviour which shall be applied to the plant's subject.