Class IntStatistics.Builder

    • Method Detail

      • build

        public IntStatistics build()
        Builds an IntStatistics instance.
        Returns:
        IntStatistics instance.
      • build

        public IntStatistics build​(int... values)
        Builds an IntStatistics instance using the input values.

        Note: IntStatistics computed using accept may be different from this instance.

        Parameters:
        values - Values.
        Returns:
        IntStatistics instance.
      • build

        public IntStatistics build​(int[] values,
                                   int from,
                                   int to)
        Builds an IntStatistics instance using the specified range of values.

        Note: IntStatistics computed using accept may be different from this instance.

        Parameters:
        values - Values.
        from - Inclusive start of the range.
        to - Exclusive end of the range.
        Returns:
        IntStatistics instance.
        Throws:
        IndexOutOfBoundsException - if the sub-range is out of bounds
        Since:
        1.2