Class LongHashSet.LongIterator

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Iterator<java.lang.Long>
    Enclosing class:
    LongHashSet

    public final class LongHashSet.LongIterator
    extends java.lang.Object
    implements java.util.Iterator<java.lang.Long>, java.io.Serializable
    Iterator which supports unboxed access to values.
    See Also:
    Serialized Form
    • 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()
      Strongly typed alternative of Iterator.next() to avoid boxing.
      int remaining()  
      void remove()  
      • 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
    • Constructor Detail

      • LongIterator

        public LongIterator()
    • Method Detail

      • hasNext

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

        public int remaining()
      • next

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

        public long nextValue()
        Strongly typed alternative of Iterator.next() to avoid boxing.
        Returns:
        the next int value.
      • remove

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