Class FilterListIterator

  • All Implemented Interfaces:
    java.util.Iterator, java.util.ListIterator
    Direct Known Subclasses:
    ReverseListIterator

    public abstract class FilterListIterator
    extends java.lang.Object
    implements java.util.ListIterator
    An ListIterator that retrieves its elements from a delegate ListIterator. The default implementation simply passes all method invocations to the delegate.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.ListIterator delegate  
    • Constructor Summary

      Constructors 
      Constructor Description
      FilterListIterator​(java.util.ListIterator delegate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.Object o)
      Calls delegate.ListIterator.add(java.lang.Object)
      boolean hasNext()
      Calls delegate.ListIterator.hasNext()
      boolean hasPrevious()
      Calls delegate.ListIterator.hasPrevious()
      java.lang.Object next()
      Calls delegate.ListIterator.next()
      int nextIndex()
      Calls delegate.ListIterator.nextIndex()
      java.lang.Object previous()
      Calls delegate.ListIterator.previous()
      int previousIndex()
      Calls delegate.ListIterator.previousIndex()
      void remove()
      Calls delegate.ListIterator.remove()
      void set​(java.lang.Object o)
      Calls delegate.ListIterator.set(java.lang.Object)
      • 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

      • delegate

        protected final java.util.ListIterator delegate
    • Constructor Detail

      • FilterListIterator

        public FilterListIterator​(java.util.ListIterator delegate)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Calls delegate.ListIterator.hasNext()
        Specified by:
        hasNext in interface java.util.Iterator
        Specified by:
        hasNext in interface java.util.ListIterator
      • next

        public java.lang.Object next()
        Calls delegate.ListIterator.next()
        Specified by:
        next in interface java.util.Iterator
        Specified by:
        next in interface java.util.ListIterator
      • hasPrevious

        public boolean hasPrevious()
        Calls delegate.ListIterator.hasPrevious()
        Specified by:
        hasPrevious in interface java.util.ListIterator
      • previous

        public java.lang.Object previous()
        Calls delegate.ListIterator.previous()
        Specified by:
        previous in interface java.util.ListIterator
      • nextIndex

        public int nextIndex()
        Calls delegate.ListIterator.nextIndex()
        Specified by:
        nextIndex in interface java.util.ListIterator
      • previousIndex

        public int previousIndex()
        Calls delegate.ListIterator.previousIndex()
        Specified by:
        previousIndex in interface java.util.ListIterator
      • remove

        public void remove()
        Calls delegate.ListIterator.remove()
        Specified by:
        remove in interface java.util.Iterator
        Specified by:
        remove in interface java.util.ListIterator
      • set

        public void set​(java.lang.Object o)
        Calls delegate.ListIterator.set(java.lang.Object)
        Specified by:
        set in interface java.util.ListIterator
      • add

        public void add​(java.lang.Object o)
        Calls delegate.ListIterator.add(java.lang.Object)
        Specified by:
        add in interface java.util.ListIterator