Package net.bmahe.genetics4j.gp.math
Class ImmutableCoefficientOperation.Builder<T>
java.lang.Object
net.bmahe.genetics4j.gp.math.ImmutableCoefficientOperation.Builder<T>
- Enclosing class:
ImmutableCoefficientOperation<T>
@Generated(from="CoefficientOperation",
generator="Immutables")
public static final class ImmutableCoefficientOperation.Builder<T>
extends Object
Builds instances of type
CoefficientOperation.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newCoefficientOperation.private Stringfrom(CoefficientOperation<T> instance) Fill a builder with attribute values from the providednet.bmahe.genetics4j.gp.math.CoefficientOperationinstance.Fill a builder with attribute values from the providednet.bmahe.genetics4j.gp.Operationinstance.private voidmergeInternal(Object object) Initializes the value for thenameattribute.prettyName(String prettyName) Initializes the value for theprettyNameattribute.returnedType(Class returnedType) Initializes the value for thereturnedTypeattribute.Initializes the value for thevalueattribute.
-
Field Details
-
INIT_BIT_NAME
private static final long INIT_BIT_NAME- See Also:
-
INIT_BIT_RETURNED_TYPE
private static final long INIT_BIT_RETURNED_TYPE- See Also:
-
INIT_BIT_VALUE
private static final long INIT_BIT_VALUE- See Also:
-
initBits
private long initBits -
name
-
returnedType
-
prettyName
-
value
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
from
Fill a builder with attribute values from the providednet.bmahe.genetics4j.gp.Operationinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providednet.bmahe.genetics4j.gp.math.CoefficientOperationinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
mergeInternal
-
name
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
returnedType
Initializes the value for thereturnedTypeattribute.- Parameters:
returnedType- The value for returnedType- Returns:
thisbuilder for use in a chained invocation
-
prettyName
Initializes the value for theprettyNameattribute.If not set, this attribute will have a default value as returned by the initializer of
prettyName.- Parameters:
prettyName- The value for prettyName- Returns:
thisbuilder for use in a chained invocation
-
value
Initializes the value for thevalueattribute.- Parameters:
value- The value for value- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newCoefficientOperation.- Returns:
- An immutable instance of CoefficientOperation
- Throws:
IllegalStateException- if any required attributes are missing
-
formatRequiredAttributesMessage
-