Class ParameterBuilder
java.lang.Object
org.moeaframework.analysis.parameter.ParameterBuilder
Builder interface for constructing parameters.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA typed parameter builder for decimal for floating-point values.static classA typed parameter builder for integer values.static classA typed parameter builder for long values.static classA typed parameter builder for strings. -
Method Summary
Modifier and TypeMethodDescriptionasConstant(double value) Shorthand for callingParameterBuilder.DoubleBuilder.constant(double).asConstant(int value) Shorthand for callingParameterBuilder.IntegerBuilder.constant(int).asConstant(long value) Shorthand for callingParameterBuilder.LongBuilder.constant(long).asConstant(String value) Shorthand for callingParameterBuilder.StringBuilder.constant(String).asDouble()Returns a parameter builder for decimal or floating-point values.asInt()Returns a parameter builder for integer values.asLong()Returns a parameter builder for long values.asString()Returns a parameter builder for strings.withValues(double... values) Shorthand for callingParameterBuilder.DoubleBuilder.withValues(double...).withValues(int... values) Shorthand for callingParameterBuilder.IntegerBuilder.withValues(int...).withValues(long... values) Shorthand for callingParameterBuilder.LongBuilder.withValues(long...).withValues(String... values) Shorthand for callingParameterBuilder.StringBuilder.withValues(String...).
-
Method Details
-
asInt
Returns a parameter builder for integer values.- Returns:
- the typed parameter builder
-
asLong
Returns a parameter builder for long values.- Returns:
- the typed parameter builder
-
asDouble
Returns a parameter builder for decimal or floating-point values.- Returns:
- the typed parameter builder
-
asString
Returns a parameter builder for strings.- Returns:
- the typed parameter builder
-
asConstant
Shorthand for callingParameterBuilder.IntegerBuilder.constant(int).- Parameters:
value- the constant value- Returns:
- the constant parameter
-
asConstant
Shorthand for callingParameterBuilder.LongBuilder.constant(long).- Parameters:
value- the constant value- Returns:
- the constant parameter
-
asConstant
Shorthand for callingParameterBuilder.DoubleBuilder.constant(double).- Parameters:
value- the constant value- Returns:
- the constant parameter
-
asConstant
Shorthand for callingParameterBuilder.StringBuilder.constant(String).- Parameters:
value- the constant value- Returns:
- the constant parameter
-
withValues
Shorthand for callingParameterBuilder.IntegerBuilder.withValues(int...).- Parameters:
values- the enumerated values- Returns:
- the enumerated parameter
-
withValues
Shorthand for callingParameterBuilder.LongBuilder.withValues(long...).- Parameters:
values- the enumerated values- Returns:
- the enumerated parameter
-
withValues
Shorthand for callingParameterBuilder.DoubleBuilder.withValues(double...).- Parameters:
values- the enumerated values- Returns:
- the enumerated parameter
-
withValues
Shorthand for callingParameterBuilder.StringBuilder.withValues(String...).- Parameters:
values- the enumerated values- Returns:
- the enumerated parameter
-