T
- the type of elements returned by this PrimitiveIterator. The type must be a wrapper type for a primitive type, such as Integer
for the primitive int
type.
T_CONS
- the type of primitive consumer. The type must be a primitive specialization of Consumer
for T
, such as IntConsumer
for Integer
.
Iterator<T>
PrimitiveIterator.OfDouble
, PrimitiveIterator.OfInt
, PrimitiveIterator.OfLong
public interface PrimitiveIterator<T,T_CONS> extends Iterator<T>
org.openjdk.java.util.stream.tripwire
is set to true
then diagnostic warnings are reported if boxing of primitive values occur when operating on primitive subtype specializations.
void
forEachRemaining(T_CONS action)
Performs the given action for each remaining element, in the order elements occur when iterating, until all elements have been processed or the action throws an exception.
(
T_CONS action)Performs the given action for each remaining element, in the order elements occur when iterating, until all elements have been processed or the action throws an exception. Errors or runtime exceptions thrown by the action are relayed to the caller.
action
- The action to be performed for each element
NullPointerException
- if the specified action is null
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4