Class LongStatistics.Builder

    • Method Detail

      • build

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

        public LongStatistics build​(long... values)
        Builds a LongStatistics instance using the input values.

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

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

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

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