Class CursorableLinkedList.SubCursor

    • Constructor Detail

    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator
        Specified by:
        hasNext in interface java.util.ListIterator
        Overrides:
        hasNext in class AbstractLinkedList.LinkedListIterator
      • add

        public void add​(java.lang.Object obj)
        Description copied from class: CursorableLinkedList.Cursor
        Adds an object to the list. The object added here will be the new 'previous' in the iterator.
        Specified by:
        add in interface java.util.ListIterator
        Overrides:
        add in class CursorableLinkedList.Cursor
        Parameters:
        obj - the object to add
      • remove

        public void remove()
        Description copied from class: CursorableLinkedList.Cursor
        Removes the item last returned by this iterator.

        There may have been subsequent alterations to the list since you obtained this item, however you can still remove it. You can even remove it if the item is no longer in the main list. However, you can't call this method on the same iterator more than once without calling next() or previous().

        Specified by:
        remove in interface java.util.Iterator
        Specified by:
        remove in interface java.util.ListIterator
        Overrides:
        remove in class CursorableLinkedList.Cursor