Stay organized with collections Save and categorize content based on your preferences.

Consumer

public interface Consumer<T>


Compat version of java.util.function.Consumer

Parameters
<T>

the type of the input to the operation

Summary

Public methods

abstract void
accept(T t)

Performs this operation on the given argument.

Public methods

accept

abstract void accept(T t)

Performs this operation on the given argument.

Parameters
T t

the input argument