Home | History | Annotate | Download | only in util

Lines Matching refs:action

82      * {@link UnsupportedOperationException} and performs no other action.
97 * Performs the given action for each remaining element until all elements
98 * have been processed or the action throws an exception. Actions are
100 * Exceptions thrown by the action are relayed to the caller.
106 * action.accept(next());
109 * @param action The action to be performed for each element
110 * @throws NullPointerException if the specified action is null
113 default void forEachRemaining(Consumer<? super E> action) {
114 Objects.requireNonNull(action);
116 action.accept(next());