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 |
|---|---|
| public void | |
| public default Consumer | |
| public static < The type of the function input. T> Consumer | Returns: AConsumer which wraps the specified
java.util.function.Consumer.The wrapped)java.util.function.Consumer to wrap. Must not
be null.Returns a |
| public static < The type of the function input. T> Consumer | Returns: Ajava.util.function.Consumer which wraps the specified
Consumer.The wrapped)Consumer to wrap. Must not be null.Returns a |
| public static < The type of the function input. T> Consumer | Returns: Ajava.util.function.Consumer which wraps the specified
Consumer.The wrapped)Consumer to wrap. Must not be null.Returns a |
| accept | back to summary |
|---|---|
| public void accept(T t) throws Exception Applies this function to the specified argument.
| |
| andThen | back to summary |
|---|---|
| public default Consumer Compose the specified | |
| asConsumer | back to summary |
|---|---|
| public static <T> Consumer Returns a | |
| asJavaConsumer | back to summary |
|---|---|
| public static <T> Consumer Returns a
The returned | |
| asJavaConsumerIgnoreException | back to summary |
|---|---|
| public static <T> Consumer Returns a
The returned | |