org.flexiblepower.efi.util
T
- The type of the value that is stored at each elementpublic static class FillLevelFunction.Builder<T> extends java.lang.Object
FillLevelFunction
. See the
FillLevelFunction.create(double)
method to get a new instance of this class.Modifier and Type | Method and Description |
---|---|
FillLevelFunction.Builder<T> |
add(double upperBound,
T value)
Adds a new element to the
FillLevelFunction that we are creating. |
FillLevelFunction<T> |
build() |
public FillLevelFunction.Builder<T> add(double upperBound, T value)
FillLevelFunction
that we are creating. It will use the upperBound of the
last element (or the lowerBound that we started with if it does not exist) as the lowerBound for the new
element.upperBound
- The upperBound of the new element. This must always be larger than the lowerBound.value
- The value that is to be associated with this elementFillLevelFunction.Builder
public FillLevelFunction<T> build()
FillLevelFunction
object that contains all the elements that have been added
until now.