Class Consumers
- java.lang.Object
-
- org.codehaus.commons.compiler.java8.java.util.function.Consumers
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Consumer<T>
from(Object delegate)
static <T> Object
from(Consumer<T> delegate)
-
-
-
Method Detail
-
from
public static <T> Consumer<T> from(Object delegate)
- Parameters:
delegate
- Must be ajava.util.Consumer
- Returns:
- A
Consumer
that forwards all invocations ofConsumer.accept(Object)
to the delegate
-
-