Result

abstract class Result<T>(source)

Represents a filter result.

Parameters

<T>

The type a filter returns

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class Match<T> : IFilter.Result<T>
Represents a matching filter result.
Link copied to clipboard
Represents a mismatching filter result.
Link copied to clipboard
class Skip<T> : IFilter.Result<T>
Represents a skipping filter result.

Functions

Link copied to clipboard
open fun <T> match(@NotNull result: @NotNull T): IFilter.Result.Match<T>
Returns an instance of Match, with its result set to the given result.
Link copied to clipboard
Returns an instance of Mismatch
Link copied to clipboard
open fun <T> skip(): IFilter.Result.Skip<T>
Returns an instance of Skip
Link copied to clipboard
open fun <TThis : IFilter.Result<TNewResult>?, TNewResult> withResult(@NotNull result: @NotNull TNewResult): TThis