Class HeuristicOptimizationAlgorithmConfig
java.lang.Object
com.dna.jopt.framework.body.scheme.helper.AbstractHeuristicOptimizationAlgorithmConfig
com.dna.jopt.framework.body.scheme.helper.HeuristicOptimizationAlgorithmConfig
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class HeuristicOptimizationAlgorithmConfig
extends AbstractHeuristicOptimizationAlgorithmConfig
Immutable implementation of
AbstractHeuristicOptimizationAlgorithmConfig
.
Use the builder to create immutable instances:
HeuristicOptimizationAlgorithmConfig.builder()
.
Use the static factory method to create immutable instances:
HeuristicOptimizationAlgorithmConfig.of()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static final class
Builds instances of typeHeuristicOptimizationAlgorithmConfig
.static interface
Nested classes/interfaces inherited from class com.dna.jopt.framework.body.scheme.helper.AbstractHeuristicOptimizationAlgorithmConfig
AbstractHeuristicOptimizationAlgorithmConfig.OptimizationAlgorithmConfig
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forHeuristicOptimizationAlgorithmConfig
.Creates an immutable copy of aAbstractHeuristicOptimizationAlgorithmConfig
value.boolean
This instance is equal to all instances ofHeuristicOptimizationAlgorithmConfig
that have equal attribute values.boolean
int
hashCode()
Computes a hash code from attributes:algorithm
,simulatedAnnealingOverrideNumIterationsValue
,hasAutoFilter
.of
(AbstractHeuristicOptimizationAlgorithmConfig.OptimizationAlgorithmConfig algorithm, Optional<Integer> simulatedAnnealingOverrideNumIterationsValue) Construct a new immutableHeuristicOptimizationAlgorithmConfig
instance.toString()
Prints the immutable valueHeuristicOptimizationAlgorithmConfig
with attribute values.Copy the current immutable object by setting a value for thealgorithm
attribute.withHasAutoFilter
(boolean value) Copy the current immutable object by setting a value for thehasAutoFilter
attribute.Copy the current immutable object by setting a present value for the optionalsimulatedAnnealingOverrideNumIterationsValue
attribute.Copy the current immutable object by setting an optional value for thesimulatedAnnealingOverrideNumIterationsValue
attribute.Methods inherited from class com.dna.jopt.framework.body.scheme.helper.AbstractHeuristicOptimizationAlgorithmConfig
convert
-
Method Details
-
algorithm
- Specified by:
algorithm
in classAbstractHeuristicOptimizationAlgorithmConfig
- Returns:
- The value of the
algorithm
attribute
-
simulatedAnnealingOverrideNumIterationsValue
- Specified by:
simulatedAnnealingOverrideNumIterationsValue
in classAbstractHeuristicOptimizationAlgorithmConfig
- Returns:
- The value of the
simulatedAnnealingOverrideNumIterationsValue
attribute
-
hasAutoFilter
public boolean hasAutoFilter()- Overrides:
hasAutoFilter
in classAbstractHeuristicOptimizationAlgorithmConfig
- Returns:
- The value of the
hasAutoFilter
attribute
-
withAlgorithm
public final HeuristicOptimizationAlgorithmConfig withAlgorithm(AbstractHeuristicOptimizationAlgorithmConfig.OptimizationAlgorithmConfig value) Copy the current immutable object by setting a value for thealgorithm
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for algorithm- Returns:
- A modified copy of the
this
object
-
withSimulatedAnnealingOverrideNumIterationsValue
public final HeuristicOptimizationAlgorithmConfig withSimulatedAnnealingOverrideNumIterationsValue(int value) Copy the current immutable object by setting a present value for the optionalsimulatedAnnealingOverrideNumIterationsValue
attribute.- Parameters:
value
- The value for simulatedAnnealingOverrideNumIterationsValue- Returns:
- A modified copy of
this
object
-
withSimulatedAnnealingOverrideNumIterationsValue
public final HeuristicOptimizationAlgorithmConfig withSimulatedAnnealingOverrideNumIterationsValue(Optional<Integer> optional) Copy the current immutable object by setting an optional value for thesimulatedAnnealingOverrideNumIterationsValue
attribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis
.- Parameters:
optional
- A value for simulatedAnnealingOverrideNumIterationsValue- Returns:
- A modified copy of
this
object
-
withHasAutoFilter
Copy the current immutable object by setting a value for thehasAutoFilter
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for hasAutoFilter- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofHeuristicOptimizationAlgorithmConfig
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:algorithm
,simulatedAnnealingOverrideNumIterationsValue
,hasAutoFilter
. -
toString
Prints the immutable valueHeuristicOptimizationAlgorithmConfig
with attribute values. -
of
public static HeuristicOptimizationAlgorithmConfig of(AbstractHeuristicOptimizationAlgorithmConfig.OptimizationAlgorithmConfig algorithm, Optional<Integer> simulatedAnnealingOverrideNumIterationsValue) Construct a new immutableHeuristicOptimizationAlgorithmConfig
instance.- Parameters:
algorithm
- The value for thealgorithm
attributesimulatedAnnealingOverrideNumIterationsValue
- The value for thesimulatedAnnealingOverrideNumIterationsValue
attribute- Returns:
- An immutable HeuristicOptimizationAlgorithmConfig instance
-
copyOf
public static HeuristicOptimizationAlgorithmConfig copyOf(AbstractHeuristicOptimizationAlgorithmConfig instance) Creates an immutable copy of aAbstractHeuristicOptimizationAlgorithmConfig
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable HeuristicOptimizationAlgorithmConfig instance
-
builder
Creates a builder forHeuristicOptimizationAlgorithmConfig
.HeuristicOptimizationAlgorithmConfig.builder() .algorithm(com.dna.jopt.framework.body.scheme.helper.AbstractHeuristicOptimizationAlgorithmConfig.OptimizationAlgorithmConfig) // required
algorithm
.simulatedAnnealingOverrideNumIterationsValue(Integer) // optionalsimulatedAnnealingOverrideNumIterationsValue
.hasAutoFilter(boolean) // optionalhasAutoFilter
.build();- Returns:
- A new HeuristicOptimizationAlgorithmConfig builder
-