T
- The type of the function input.@ConsumerType @FunctionalInterface public interface Consumer<T>
This is a functional interface and can be used as the assignment target for a lambda expression or method reference.
Modifier and Type | Method and Description |
---|---|
void |
accept(T t)
Applies this function to the specified argument.
|
void accept(T t) throws java.lang.Exception
t
- The input to this function.java.lang.Exception
- An exception thrown by the method.Copyright © 2010 - 2020 Adobe. All Rights Reserved