T
- The type of object to consume.public interface Consumer<T>
Similar to Java8 Consumer.
Modifier and Type | Method and Description |
---|---|
void |
accept(T t)
Performs this operation on the given argument.
|
void accept(T t)
Performs this operation on the given argument.
t
- the input argumentCopyright © 2016–2023. All rights reserved.