Consumers¶
- public class org.apache.commons.lang3.function.Consumers[source]¶
Provides
Consumerinstances.- Since:
3.13.0
Methods¶
|
Applies the given |
|
|
Gets the NOP Consumer singleton. |
- public static <T> void accept(Consumer<T> consumer, T object)[source]¶
Applies the given
Consumeraction to the object if the consumer is notnull. Otherwise, does nothing.- Type parameters:
<T> – the type of the argument the consumer accepts.
- Parameters:
consumer – The consumer to consume.
object – The object to be consumed.
- Since:
3.15.0