public class Consumers
extends java.lang.Object
Constructor and Description |
---|
Consumers() |
Modifier and Type | Method and Description |
---|---|
static <T> java.util.function.Consumer<T> |
doNothing()
A consumer which does nothing.
|
static <T> java.util.function.Consumer<T> |
redirectable(java.util.function.Supplier<java.util.function.Consumer<T>> target)
A Consumer which always passes its input to the given target.
|
public static <T> java.util.function.Consumer<T> doNothing()
public static <T> java.util.function.Consumer<T> redirectable(java.util.function.Supplier<java.util.function.Consumer<T>> target)