Class IntStatistics.Builder
- java.lang.Object
-
- org.apache.commons.statistics.descriptive.IntStatistics.Builder
-
- Enclosing class:
- IntStatistics
public static final class IntStatistics.Builder extends Object
A builder forIntStatistics
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntStatistics
build()
Builds aIntStatistics
instance.IntStatistics
build(int... values)
Builds aIntStatistics
instance using the inputvalues
.IntStatistics.Builder
setConfiguration(StatisticsConfiguration v)
Sets the statistics configuration options for computation of statistics.
-
-
-
Method Detail
-
setConfiguration
public IntStatistics.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 IntStatistics build()
Builds aIntStatistics
instance.- Returns:
IntStatistics
instance.
-
build
public IntStatistics build(int... values)
Builds aIntStatistics
instance using the inputvalues
.Note:
IntStatistics
computed usingaccept
may be different from this instance.- Parameters:
values
- Values.- Returns:
IntStatistics
instance.
-
-