Class UnicodeSet.CodePointIteratorInt

  • Enclosing class:
    UnicodeSet

    private static class UnicodeSet.CodePointIteratorInt
    extends java.lang.Object
    This class is optimized to iterate on code points and will be used to implement both the Iterator (Integer, boxed value) and the Spliterator.OfInt (int primitive). It looks exactly like an Iterator, but works on the primitive int, so it can't implement Iterator.
    • Field Detail

      • list

        private final int[] list
      • lastRange

        private final int lastRange
      • currentRange

        private int currentRange
      • rangeStart

        private int rangeStart
      • rangeLimit

        private int rangeLimit
    • Constructor Detail

      • CodePointIteratorInt

        public CodePointIteratorInt​(UnicodeSet unicodeSet)
    • Method Detail

      • hasNext

        public boolean hasNext()
      • next

        public int next()