Class Consumers
- java.lang.Object
-
- org.codehaus.commons.compiler.java8.java.util.function.Consumers
-
public final class Consumers extends java.lang.ObjectHelper methods for theConsumerfacade.
-
-
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.Objectfrom(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
Consumerthat forwards all invocations ofConsumer.accept(Object)to the delegate
-
from
public static <T> java.lang.Object from(Consumer<T> delegate)
- Returns:
- A
java.util.Consumerthat forwards all invocations ofaccept(T)to the delegate.
-
-