Consumer

Added in 1.1.0

public fun interface Consumer<T extends Object>

Known direct subclasses
TestConsumer

An implementation of Consumer to capture values during a test and allows developers to perform assertions on the values.


Compat version of java.util.function.Consumer

Parameters
<T extends Object>

the type of the input to the operation

Summary

Public methods

abstract void
accept(@NonNull T value)

Performs this operation on the given argument.

Public methods

accept

Added in 1.1.0
abstract void accept(@NonNull T value)

Performs this operation on the given argument.

Parameters
@NonNull T value

the input argument