Class IntStreams

java.lang.Object
org.kiwiproject.stream.IntStreams

public final class IntStreams extends Object
Static utilities related to IntStream.
  • Method Details

    • indicesOf

      public static <T> IntStream indicesOf(List<T> values)
      Return an IntStream whose values are the indices ranging from 0 to values.size() - 1.
      Type Parameters:
      T - the list element type
      Parameters:
      values - the list
      Returns:
      IntStream of the list indices