E
- the argument type of the action@FunctionalInterface public interface Action<E> extends Consumer<E>
Consumer
,
except that it allows for throwing exceptions, making it more appropriate for
encapsulating code blocks that may fail.Modifier and Type | Method and Description |
---|---|
default void |
accept(E t) |
void |
run(E arg) |
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.