Class DoubleBigListIterators.AbstractIndexBasedBigListIterator

    • Method Detail

      • hasPrevious

        public boolean hasPrevious()
        Description copied from interface: BidirectionalIterator
        Returns whether there is a previous element.
        Specified by:
        hasPrevious in interface BidirectionalIterator<java.lang.Double>
        Returns:
        whether there is a previous element.
        See Also:
        ListIterator.hasPrevious()
      • nextIndex

        public long nextIndex()
        Description copied from interface: BigListIterator
        Returns the index of the element that would be returned by a subsequent call to next. (Returns list size if the list iterator is at the end of the list.)
        Specified by:
        nextIndex in interface BigListIterator<java.lang.Double>
        Returns:
        the index of the element that would be returned by a subsequent call to next, or list size if list iterator is at end of list.
        See Also:
        ListIterator.nextIndex()
      • previousIndex

        public long previousIndex()
        Description copied from interface: BigListIterator
        Returns the index of the element that would be returned by a subsequent call to previous. (Returns -1 if the list iterator is at the beginning of the list.)
        Specified by:
        previousIndex in interface BigListIterator<java.lang.Double>
        Returns:
        the index of the element that would be returned by a subsequent call to previous, or -1 if list iterator is at beginning of list.
        See Also:
        ListIterator.previousIndex()
      • add

        public void add​(double k)
        Description copied from interface: DoubleBigListIterator
        Inserts the specified element into the list (optional operation).
        Specified by:
        add in interface DoubleBigListIterator
        See Also:
        ListIterator.add(Object)
      • set

        public void set​(double k)
        Description copied from interface: DoubleBigListIterator
        Replaces the last element returned by next() or previous() with the specified element (optional operation).
        Specified by:
        set in interface DoubleBigListIterator
        See Also:
        ListIterator.set(Object)