Class IntStreams


  • public class IntStreams
    extends Object
    Static utilities related to IntStream.
    • Constructor Detail

      • IntStreams

        public IntStreams()
    • Method Detail

      • 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