Interface LongIterable

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods 
      Modifier and Type Method Description
      default void forEach​(java.util.function.Consumer<? super java.lang.Long> action)
      Deprecated.
      Please use the corresponding type-specific method instead.
      default void forEach​(java.util.function.LongConsumer action)
      Performs the given action for each element of this type-specific Iterable until all elements have been processed or the action throws an exception.
      LongIterator iterator()
      Returns a type-specific iterator.
      • Methods inherited from interface java.lang.Iterable

        spliterator
    • Method Detail

      • iterator

        LongIterator iterator()
        Returns a type-specific iterator.

        Note that this specification strengthens the one given in Iterable.iterator().

        Specified by:
        iterator in interface java.lang.Iterable<java.lang.Long>
        Returns:
        a type-specific iterator.
        See Also:
        Iterable.iterator()
      • forEach

        default void forEach​(java.util.function.LongConsumer action)
        Performs the given action for each element of this type-specific Iterable until all elements have been processed or the action throws an exception.
        Parameters:
        action - the action to be performed for each element.
        Since:
        8.0.0
        See Also:
        Iterable.forEach(java.util.function.Consumer)
      • forEach

        @Deprecated
        default void forEach​(java.util.function.Consumer<? super java.lang.Long> action)
        Deprecated.
        Please use the corresponding type-specific method instead.
        Specified by:
        forEach in interface java.lang.Iterable<java.lang.Long>