public abstract class AbstractDoubleSpliterator extends java.lang.Object implements DoubleSpliterator
forEachRemaining(it.unimi.dsi.fastutil.doubles.DoubleConsumer)
.Modifier and Type | Method and Description |
---|---|
void |
forEachRemaining(DoubleConsumer action)
Performs the given action for each remaining element until all elements
have been processed or the action throws an exception.
|
boolean |
tryAdvance(DoubleConsumer action)
Attempts to perform the action on the next element, or do nothing
but return
false if there are no remaining elements. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, getComparator, skip, tryAdvance, trySplit
public final boolean tryAdvance(DoubleConsumer action)
false
if there are no remaining elements.
WARNING: Overriding this method is almost always a mistake, as this
overload only exists to disambiguate. Instead, override the tryAdvance()
overload
that uses the JDK's primitive consumer type (e.g., IntConsumer
).
If Java supported final default methods, this would be one, but sadly it does not.
If you checked and are overriding the version with java.util.function.XConsumer
, and
still see this warning, then your IDE is incorrectly conflating this method with the proper
method to override, and you can safely ignore this message.
tryAdvance
in interface DoubleSpliterator
action
- the action to be performed on the next element.Spliterator.tryAdvance(java.util.function.Consumer)
public final void forEachRemaining(DoubleConsumer action)
WARNING: Overriding this method is almost always a mistake, as this
overload only exists to disambiguate. Instead, override the forEachRemaining()
overload
that uses the JDK's primitive consumer type (e.g. IntConsumer
).
If Java supported final default methods, this would be one, but sadly it does not.
If you checked and are overriding the version with java.util.function.XConsumer
, and
still see this warning, then your IDE is incorrectly conflating this method with the proper
method to override, and you can safely ignore this message.
forEachRemaining
in interface DoubleSpliterator
action
- the action to be performed for each element.Spliterator.forEachRemaining(java.util.function.Consumer)