|
FlexDoc/Javadoc 2.0 Demo Java Doc |
Nested Class Summary |
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator |
Method Summary |
||
default void |
Performs the given action for each remaining element until all elements
have been processed or the action throws an exception.
|
|
default void |
forEachRemaining(LongConsumer action)
Performs the given action for each remaining element until all elements
have been processed or the action throws an exception.
|
|
default Long |
next()
Returns the next element in the iteration.
|
|
long |
nextLong()
Returns the next long element in the iteration.
|
Methods inherited from interface java.util.Iterator |
long nextLong |
() |
default void forEachRemaining |
(LongConsumer action) |
The behavior of an iterator is unspecified if the action modifies the source of elements in any way (even by calling the remove method or other mutator methods of Iterator subtypes), unless an overriding class has specified a concurrent modification policy.
Subsequent behavior of an iterator is unspecified if the action throws an exception.
The default implementation behaves as if:
while (hasNext())
action.accept(nextLong());
default Long next |
() |
default void forEachRemaining |
The behavior of an iterator is unspecified if the action modifies the collection in any way (even by calling the remove method or other mutator methods of Iterator subtypes), unless an overriding class has specified a concurrent modification policy.
Subsequent behavior of an iterator is unspecified if the action throws an exception.
|
FlexDoc/Javadoc 2.0 Demo Java Doc |