Class ImmutableNodeReplacement.Builder
java.lang.Object
net.bmahe.genetics4j.gp.spec.mutation.ImmutableNodeReplacement.Builder
- Enclosing class:
- ImmutableNodeReplacement
@Generated(from="NodeReplacement",
           generator="Immutables")
public static final class ImmutableNodeReplacement.Builder
extends Object
Builds instances of type 
NodeReplacement.
 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 SummaryFieldsModifier and TypeFieldDescriptionprivate static final longprivate longprivate double
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds a newNodeReplacement.private Stringfrom(NodeReplacement instance) Fill a builder with attribute values from the providedNodeReplacementinstance.populationMutationProbability(double populationMutationProbability) Initializes the value for thepopulationMutationProbabilityattribute.
- 
Field Details- 
INIT_BIT_POPULATION_MUTATION_PROBABILITYprivate static final long INIT_BIT_POPULATION_MUTATION_PROBABILITY- See Also:
 
- 
initBitsprivate long initBits
- 
populationMutationProbabilityprivate double populationMutationProbability
 
- 
- 
Constructor Details- 
Builderprivate Builder()
 
- 
- 
Method Details- 
fromFill a builder with attribute values from the providedNodeReplacementinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
- instance- The instance from which to copy values
- Returns:
- thisbuilder for use in a chained invocation
 
- 
populationMutationProbabilitypublic final ImmutableNodeReplacement.Builder populationMutationProbability(double populationMutationProbability) Initializes the value for thepopulationMutationProbabilityattribute.- Parameters:
- populationMutationProbability- The value for populationMutationProbability
- Returns:
- thisbuilder for use in a chained invocation
 
- 
buildBuilds a newNodeReplacement.- Returns:
- An immutable instance of NodeReplacement
- Throws:
- IllegalStateException- if any required attributes are missing
 
- 
formatRequiredAttributesMessage
 
-