SimpleCondition

fun interface SimpleCondition<Output>(source)

Represents a simple, stateless functional interface that evaluates a condition on a given output. This is particularly tailored for Java compatibility, enabling usage in contexts where Java code interacts with Kotlin.

Parameters

Output

The type of the input based on which the condition is evaluated.

Functions

Link copied to clipboard
abstract fun invoke(output: Output): Boolean

Invokes the condition with the given output object and evaluates whether it satisfies the condition.