Class BitFieldSet.EnumBitSetIterator<E extends java.lang.Enum<E>>

  • All Implemented Interfaces:
    java.util.Iterator<E>
    Enclosing class:
    BitFieldSet<E extends java.lang.Enum<E>>

    private class BitFieldSet.EnumBitSetIterator<E extends java.lang.Enum<E>>
    extends java.lang.Object
    implements java.util.Iterator<E>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) long lastReturned
      The bit representing the last element returned by this iterator but not removed, or zero if no such element exists.
      (package private) long unseen
      A bit vector representing the elements in the set not yet returned by this iterator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      E next()  
      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
    • Field Detail

      • unseen

        long unseen
        A bit vector representing the elements in the set not yet returned by this iterator.
      • lastReturned

        long lastReturned
        The bit representing the last element returned by this iterator but not removed, or zero if no such element exists.
    • Constructor Detail

      • EnumBitSetIterator

        EnumBitSetIterator()
    • Method Detail

      • hasNext

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

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

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