Class ComposedIterator<O,​I>

  • All Implemented Interfaces:
    java.util.Iterator<I>

    public abstract class ComposedIterator<O,​I>
    extends java.lang.Object
    implements java.util.Iterator<I>
    A 2-level iterator. has not been tested yet!
    • Constructor Summary

      Constructors 
      Constructor Description
      ComposedIterator​(java.util.Iterator<O> outer)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      abstract java.util.Iterator<? extends I> makeInner​(O outer)  
      I next()  
      void remove()  
      • 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
    • Constructor Detail

      • ComposedIterator

        public ComposedIterator​(java.util.Iterator<O> outer)
    • Method Detail

      • makeInner

        public abstract java.util.Iterator<? extends I> makeInner​(O outer)
      • remove

        public void remove()
                    throws java.lang.UnsupportedOperationException
        Specified by:
        remove in interface java.util.Iterator<O>
        Throws:
        java.lang.UnsupportedOperationException
      • hasNext

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

        public I next()
        Specified by:
        next in interface java.util.Iterator<O>