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
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final classBuilds instances of typeHeuristicOptimizationAlgorithmConfig.static interfaceNested 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 aAbstractHeuristicOptimizationAlgorithmConfigvalue.booleanThis instance is equal to all instances ofHeuristicOptimizationAlgorithmConfigthat have equal attribute values.booleaninthashCode()Computes a hash code from attributes:algorithm,simulatedAnnealingOverrideNumIterationsValue,hasAutoFilter.of(AbstractHeuristicOptimizationAlgorithmConfig.OptimizationAlgorithmConfig algorithm, Optional<Integer> simulatedAnnealingOverrideNumIterationsValue) Construct a new immutableHeuristicOptimizationAlgorithmConfiginstance.toString()Prints the immutable valueHeuristicOptimizationAlgorithmConfigwith attribute values.Copy the current immutable object by setting a value for thealgorithmattribute.withHasAutoFilter(boolean value) Copy the current immutable object by setting a value for thehasAutoFilterattribute.Copy the current immutable object by setting a present value for the optionalsimulatedAnnealingOverrideNumIterationsValueattribute.Copy the current immutable object by setting an optional value for thesimulatedAnnealingOverrideNumIterationsValueattribute.Methods inherited from class com.dna.jopt.framework.body.scheme.helper.AbstractHeuristicOptimizationAlgorithmConfig
convert, reverseConvert, reverseConvertSingleAlgo
-
Method Details
-
algorithm
- Specified by:
algorithmin classAbstractHeuristicOptimizationAlgorithmConfig- Returns:
- The value of the
algorithmattribute
-
simulatedAnnealingOverrideNumIterationsValue
- Specified by:
simulatedAnnealingOverrideNumIterationsValuein classAbstractHeuristicOptimizationAlgorithmConfig- Returns:
- The value of the
simulatedAnnealingOverrideNumIterationsValueattribute
-
hasAutoFilter
public boolean hasAutoFilter()- Overrides:
hasAutoFilterin classAbstractHeuristicOptimizationAlgorithmConfig- Returns:
- The value of the
hasAutoFilterattribute
-
withAlgorithm
public final HeuristicOptimizationAlgorithmConfig withAlgorithm(AbstractHeuristicOptimizationAlgorithmConfig.OptimizationAlgorithmConfig value) Copy the current immutable object by setting a value for thealgorithmattribute. 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
thisobject
-
withSimulatedAnnealingOverrideNumIterationsValue
public final HeuristicOptimizationAlgorithmConfig withSimulatedAnnealingOverrideNumIterationsValue(int value) Copy the current immutable object by setting a present value for the optionalsimulatedAnnealingOverrideNumIterationsValueattribute.- Parameters:
value- The value for simulatedAnnealingOverrideNumIterationsValue- Returns:
- A modified copy of
thisobject
-
withSimulatedAnnealingOverrideNumIterationsValue
public final HeuristicOptimizationAlgorithmConfig withSimulatedAnnealingOverrideNumIterationsValue(Optional<Integer> optional) Copy the current immutable object by setting an optional value for thesimulatedAnnealingOverrideNumIterationsValueattribute. 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
thisobject
-
withHasAutoFilter
Copy the current immutable object by setting a value for thehasAutoFilterattribute. 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
thisobject
-
equals
This instance is equal to all instances ofHeuristicOptimizationAlgorithmConfigthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:algorithm,simulatedAnnealingOverrideNumIterationsValue,hasAutoFilter. -
toString
Prints the immutable valueHeuristicOptimizationAlgorithmConfigwith attribute values. -
of
public static HeuristicOptimizationAlgorithmConfig of(AbstractHeuristicOptimizationAlgorithmConfig.OptimizationAlgorithmConfig algorithm, Optional<Integer> simulatedAnnealingOverrideNumIterationsValue) Construct a new immutableHeuristicOptimizationAlgorithmConfiginstance.- Parameters:
algorithm- The value for thealgorithmattributesimulatedAnnealingOverrideNumIterationsValue- The value for thesimulatedAnnealingOverrideNumIterationsValueattribute- Returns:
- An immutable HeuristicOptimizationAlgorithmConfig instance
-
copyOf
public static HeuristicOptimizationAlgorithmConfig copyOf(AbstractHeuristicOptimizationAlgorithmConfig instance) Creates an immutable copy of aAbstractHeuristicOptimizationAlgorithmConfigvalue. 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) // requiredalgorithm.simulatedAnnealingOverrideNumIterationsValue(Integer) // optionalsimulatedAnnealingOverrideNumIterationsValue.hasAutoFilter(boolean) // optionalhasAutoFilter.build();- Returns:
- A new HeuristicOptimizationAlgorithmConfig builder
-