Class ForEachSupport.ArrayIterator

  • All Implemented Interfaces:
    java.util.Iterator
    Enclosing class:
    ForEachSupport

    private static class ForEachSupport.ArrayIterator
    extends ForEachSupport.ReadOnlyIterator
    Iterator over an array, including arrays of primitive types.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object array  
      private int i  
      private int length  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ArrayIterator​(java.lang.Object array)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      java.lang.Object next()  
      • 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

      • array

        private final java.lang.Object array
      • length

        private final int length
      • i

        private int i
    • Constructor Detail

      • ArrayIterator

        private ArrayIterator​(java.lang.Object array)
    • Method Detail

      • hasNext

        public boolean hasNext()
      • next

        public java.lang.Object next()