Interface LongListIterator

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.PrimitiveIterator

        java.util.PrimitiveIterator.OfDouble, java.util.PrimitiveIterator.OfInt, java.util.PrimitiveIterator.OfLong
    • Method Summary

      All Methods Instance Methods Default Methods Deprecated Methods 
      Modifier and Type Method Description
      default void add​(long k)
      Inserts the specified element into the list (optional operation).
      default void add​(java.lang.Long k)
      Deprecated.
      Please use the corresponding type-specific method instead.
      default java.lang.Long next()
      Deprecated.
      Please use the corresponding type-specific method instead.
      default java.lang.Long previous()
      Deprecated.
      Please use the corresponding type-specific method instead.
      default void remove()
      Removes from the underlying collection the last element returned by this iterator (optional operation).
      default void set​(long k)
      Replaces the last element returned by next() or previous() with the specified element (optional operation).
      default void set​(java.lang.Long k)
      Deprecated.
      Please use the corresponding type-specific method instead.
      • Methods inherited from interface java.util.ListIterator

        hasNext, hasPrevious, nextIndex, previousIndex
      • Methods inherited from interface java.util.PrimitiveIterator.OfLong

        forEachRemaining
    • Method Detail

      • set

        default void set​(long k)
        Replaces the last element returned by next() or previous() with the specified element (optional operation).
        Parameters:
        k - the element used to replace the last element returned.

        This default implementation just throws an UnsupportedOperationException.

        See Also:
        ListIterator.set(Object)
      • add

        default void add​(long k)
        Inserts the specified element into the list (optional operation).

        This default implementation just throws an UnsupportedOperationException.

        Parameters:
        k - the element to insert.
        See Also:
        ListIterator.add(Object)
      • remove

        default void remove()
        Removes from the underlying collection the last element returned by this iterator (optional operation).

        This default implementation just throws an UnsupportedOperationException.

        Specified by:
        remove in interface java.util.Iterator<java.lang.Long>
        Specified by:
        remove in interface java.util.ListIterator<java.lang.Long>
        See Also:
        ListIterator.remove()
      • set

        @Deprecated
        default void set​(java.lang.Long k)
        Deprecated.
        Please use the corresponding type-specific method instead.
        Specified by:
        set in interface java.util.ListIterator<java.lang.Long>
      • add

        @Deprecated
        default void add​(java.lang.Long k)
        Deprecated.
        Please use the corresponding type-specific method instead.
        Specified by:
        add in interface java.util.ListIterator<java.lang.Long>
      • next

        @Deprecated
        default java.lang.Long next()
        Deprecated.
        Please use the corresponding type-specific method instead.
        Specified by:
        next in interface java.util.Iterator<java.lang.Long>
        Specified by:
        next in interface java.util.ListIterator<java.lang.Long>
        Specified by:
        next in interface LongIterator
        Specified by:
        next in interface java.util.PrimitiveIterator.OfLong
      • previous

        @Deprecated
        default java.lang.Long previous()
        Deprecated.
        Please use the corresponding type-specific method instead.
        Returns the previous element from the collection.
        Specified by:
        previous in interface BidirectionalIterator<java.lang.Long>
        Specified by:
        previous in interface java.util.ListIterator<java.lang.Long>
        Specified by:
        previous in interface LongBidirectionalIterator
        Returns:
        the previous element from the collection.
        See Also:
        ListIterator.previous()