Class DelegatingResultList.DelegatingListIterator<T>

  • All Implemented Interfaces:
    java.util.Iterator<T>, java.util.ListIterator<T>
    Enclosing class:
    DelegatingResultList<T>

    public class DelegatingResultList.DelegatingListIterator<T>
    extends java.lang.Object
    implements java.util.ListIterator<T>
    Delegating iterator that also performs exception translation.
    • Constructor Detail

      • DelegatingListIterator

        public DelegatingListIterator​(java.util.ListIterator<T> it)
        Constructor; supply delegate.
    • Method Detail

      • getDelegate

        public java.util.ListIterator<T> getDelegate()
        Return the direct delegate.
      • getInnermostDelegate

        public java.util.ListIterator<T> getInnermostDelegate()
        Return the native delegate.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hasNext

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

        public T next()
        Specified by:
        next in interface java.util.Iterator<T>
        Specified by:
        next in interface java.util.ListIterator<T>
      • hasPrevious

        public boolean hasPrevious()
        Specified by:
        hasPrevious in interface java.util.ListIterator<T>
      • previous

        public T previous()
        Specified by:
        previous in interface java.util.ListIterator<T>
      • nextIndex

        public int nextIndex()
        Specified by:
        nextIndex in interface java.util.ListIterator<T>
      • previousIndex

        public int previousIndex()
        Specified by:
        previousIndex in interface java.util.ListIterator<T>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<T>
        Specified by:
        remove in interface java.util.ListIterator<T>
      • set

        public void set​(T o)
        Specified by:
        set in interface java.util.ListIterator<T>
      • add

        public void add​(T o)
        Specified by:
        add in interface java.util.ListIterator<T>