Class IteratorLikeIterable.Itr

  • All Implemented Interfaces:
    java.util.Iterator<java.lang.Object>
    Enclosing class:
    IteratorLikeIterable

    public final class IteratorLikeIterable.Itr
    extends java.lang.Object
    implements java.util.Iterator<java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean isDone  
      private java.lang.Object nextVal  
    • Constructor Summary

      Constructors 
      Constructor Description
      Itr()  
    • 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, remove
    • Field Detail

      • nextVal

        private java.lang.Object nextVal
      • isDone

        private boolean isDone
    • Constructor Detail

      • Itr

        public Itr()
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<java.lang.Object>
      • next

        public java.lang.Object next()
        Specified by:
        next in interface java.util.Iterator<java.lang.Object>