public interface DForEach
| Modifier and Type | Method and Description |
|---|---|
void |
forEachRemaining(DConsumer action)
Performs the given action for each remaining element sequentially until
all elements have been processed or the action throws an exception.
|
boolean |
tryAdvance(DConsumer action)
If a remaining element exists, performs the given action on it, returning
true; else returns false. |
void forEachRemaining(DConsumer action)
action - The actionNullPointerException - if the specified action is nullboolean tryAdvance(DConsumer action)
true; else returns false. Exceptions thrown by the action
are relayed to the caller.action - The actionfalse if no remaining elements existed upon entry to this
method, else true.NullPointerException - if the specified action is nullCopyright © 2022. All rights reserved.