Class LongArrayQueue.LongIterator

  • All Implemented Interfaces:
    java.util.Iterator<java.lang.Long>
    Enclosing class:
    LongArrayQueue

    public final class LongArrayQueue.LongIterator
    extends java.lang.Object
    implements java.util.Iterator<java.lang.Long>
    Specialised Iterator from which the value can be retrieved without boxing via nextValue().
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int index  
    • Constructor Summary

      Constructors 
      Constructor Description
      LongIterator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      java.lang.Long next()
      long nextValue()
      Get the next value from the iterator without boxing.
      (package private) LongArrayQueue.LongIterator reset()  
      • Methods inherited from class java.lang.Object

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

        forEachRemaining, remove
    • Field Detail

      • index

        private int index
    • Constructor Detail

      • LongIterator

        public LongIterator()
    • Method Detail

      • hasNext

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

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

        public long nextValue()
        Get the next value from the iterator without boxing.
        Returns:
        the next value from the queue.