mikera.vectorz.impl
Class RepeatedElementIterator
- java.lang.Object
-
- mikera.vectorz.impl.RepeatedElementIterator
-
- All Implemented Interfaces:
- java.util.Iterator<java.lang.Double>
public class RepeatedElementIterator extends java.lang.Object implements java.util.Iterator<java.lang.Double>Specialised iterator for a repeated Double value. This is useful to minimise memory pressure in several quite common cases where you don't want to re-box a double value for every step.
-
-
Constructor Summary
Constructors Constructor and Description RepeatedElementIterator(long count, java.lang.Double value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanhasNext()java.lang.Doublenext()voidremove()
-
-
-
Constructor Detail
-
RepeatedElementIterator
public RepeatedElementIterator(long count, java.lang.Double value)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<java.lang.Double>
-
next
public java.lang.Double next()
- Specified by:
nextin interfacejava.util.Iterator<java.lang.Double>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<java.lang.Double>
-
-
DMelt 3.0 © DataMelt by jWork.ORG