Class CharBitSet.CharBitSetIterator

java.lang.Object
com.github.tommyettinger.ds.CharBitSet.CharBitSetIterator
All Implemented Interfaces:
CharIterator, Iterator<Character>
Enclosing class:
CharBitSet

public static class CharBitSet.CharBitSetIterator extends Object implements CharIterator
  • Field Details

    • hasNext

      public boolean hasNext
  • Constructor Details

    • CharBitSetIterator

      public CharBitSetIterator(CharBitSet set)
  • Method Details

    • reset

      public void reset()
    • hasNext

      public boolean hasNext()
      Returns true if the iteration has more elements. (In other words, returns true if CharIterator.next() would return an element rather than throwing an exception.)
      Specified by:
      hasNext in interface Iterator<Character>
      Returns:
      true if the iteration has more elements
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<Character>
    • nextChar

      public char nextChar()
      Description copied from interface: CharIterator
      Returns the next char element in the iteration.
      Specified by:
      nextChar in interface CharIterator
      Returns:
      the next char element in the iteration
    • toList

      public CharList toList()
      Returns a new CharList containing the remaining items. Does not change the position of this iterator.
    • appendInto

      Append the remaining items that this can iterate through into the given PrimitiveCollection.OfChar. Does not change the position of this iterator.
      Parameters:
      coll - any modifiable PrimitiveCollection.OfChar; may have items appended into it
      Returns:
      the given primitive collection