Consumer

fun interface Consumer<T>

Represents an operation that accepts a single input argument and returns no result. Unlike most other functional interfaces, Consumer is expected to operate via side-effects.

Parameters

the type of the input to the operation

Functions

Link copied to clipboard
abstract fun accept(t: T)

Performs this operation on the given argument.