doc / ch.tutteli.atrium.logic.creating.iterable.contains / IterableLikeContains / SearchBehaviour

SearchBehaviour

interface SearchBehaviour : Contains.SearchBehaviour (source)

Represents a search behaviour but leaves it up to the Creator how this behaviour is implemented -- yet, it provides a method to decorate a description (a Translatable) in order that it reflects the search behaviour.

Inherited Functions

decorateDescription

abstract fun decorateDescription(description: Translatable): Translatable

Decorates the given description so that it represents the search behaviour and returns the result.

Inheritors

InAnyOrderOnlySearchBehaviour

interface InAnyOrderOnlySearchBehaviour : IterableLikeContains.SearchBehaviour

Represents the search behaviour that expected entries can appear in any order within the IterableLike but that the resulting assertion should not hold if there are less or more entries than expected.

InAnyOrderSearchBehaviour

interface InAnyOrderSearchBehaviour : IterableLikeContains.SearchBehaviour

Represents the search behaviour that expected entries can appear in any order within the IterableLike.

InOrderOnlyGroupedSearchBehaviour

interface InOrderOnlyGroupedSearchBehaviour : IterableLikeContains.SearchBehaviour

Represents the search behaviour that expected entries have to appear in the given order in terms of groups within the IterableLike whereas the entries can be in any order within the group and that the resulting assertion should not hold if there are less or more entries than expected.

InOrderOnlySearchBehaviour

interface InOrderOnlySearchBehaviour : IterableLikeContains.SearchBehaviour

Represents the search behaviour that expected entries have to appear in the given order within the IterableLike and that the resulting assertion should not hold if there are less or more entries than expected.

InOrderSearchBehaviour

interface InOrderSearchBehaviour : IterableLikeContains.SearchBehaviour

Represents the search behaviour that expected entries have to appear in the given order within the IterableLike.

NoOpSearchBehaviour

interface NoOpSearchBehaviour : IterableLikeContains.SearchBehaviour

Represents the default search behaviour or rather does not define a search behaviour at all.