Class IntList.IntIterator

  • Enclosing class:
    IntList

    public static class IntList.IntIterator
    extends Object
    to iterate on the content of the list not an actual iterator to avoid autoboxing
    • Constructor Detail

      • IntIterator

        public IntIterator​(int[][] slabs,
                           int count)
        slabs will be iterated in order up to the provided count as the last slab may not be full
        Parameters:
        slabs - contain the ints
        count - count of ints
    • Method Detail

      • hasNext

        public boolean hasNext()
        Returns:
        whether there is a next value
      • next

        public int next()
        Returns:
        the next int