Documentation of 'mikera.vectorz.impl.RepeatedElementIterator' Java class
RepeatedElementIterator
mikera.vectorz.impl

Class 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
      boolean hasNext() 
      java.lang.Double next() 
      void remove() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • RepeatedElementIterator

        public RepeatedElementIterator(long count,
                                       java.lang.Double value)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<java.lang.Double>
      • next

        public java.lang.Double next()
        Specified by:
        next in interface java.util.Iterator<java.lang.Double>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<java.lang.Double>

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.