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