Class LongStatistics.Builder
- java.lang.Object
-
- org.apache.commons.statistics.descriptive.LongStatistics.Builder
-
- Enclosing class:
- LongStatistics
public static final class LongStatistics.Builder extends Object
A builder forLongStatistics
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongStatistics
build()
Builds aLongStatistics
instance.LongStatistics
build(long... values)
Builds aLongStatistics
instance using the inputvalues
.LongStatistics.Builder
setConfiguration(StatisticsConfiguration v)
Sets the statistics configuration options for computation of statistics.
-
-
-
Method Detail
-
setConfiguration
public LongStatistics.Builder setConfiguration(StatisticsConfiguration v)
Sets the statistics configuration options for computation of statistics.- Parameters:
v
- Value.- Returns:
- the builder
- Throws:
NullPointerException
- if the value is null
-
build
public LongStatistics build()
Builds aLongStatistics
instance.- Returns:
LongStatistics
instance.
-
build
public LongStatistics build(long... values)
Builds aLongStatistics
instance using the inputvalues
.Note:
LongStatistics
computed usingaccept
may be different from this instance.- Parameters:
values
- Values.- Returns:
LongStatistics
instance.
-
-