Class DoubleStatistics.Builder

    • Method Detail

      • build

        public DoubleStatistics build()
        Builds a DoubleStatistics instance.
        Returns:
        DoubleStatistics instance.
      • build

        public DoubleStatistics build​(double... values)
        Builds a DoubleStatistics instance using the input values.

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

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

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

        Note: DoubleStatistics 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:
        DoubleStatistics instance.
        Throws:
        IndexOutOfBoundsException - if the sub-range is out of bounds
        Since:
        1.2