|
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(IntConsumer action)
Performs the given action for each remaining element until all elements
have been processed or the action throws an exception.
|
|
default Integer |
next()
Returns the next element in the iteration.
|
|
int |
nextInt()
Returns the next int element in the iteration.
|
Methods inherited from interface java.util.Iterator |
int nextInt |
() |
default void forEachRemaining |
(IntConsumer 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(nextInt());
default Integer 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 |