Interface CodeUnitIterator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean hasNext()
      Return true if there is a next CodeUnit.
      CodeUnit next()
      Get the next CodeUnit or null if no more CodeUnits.
      • Methods inherited from interface java.lang.Iterable

        forEach, iterator, spliterator
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Method Detail

      • hasNext

        boolean hasNext()
        Return true if there is a next CodeUnit.
        Specified by:
        hasNext in interface java.util.Iterator<CodeUnit>
      • next

        CodeUnit next()
        Get the next CodeUnit or null if no more CodeUnits.

        NOTE: This deviates from the standard Iterator interface by returning null instead of throwing an exception.

        Specified by:
        next in interface java.util.Iterator<CodeUnit>