Class ConstructionOptimizationAlgorithmConfig
java.lang.Object
com.dna.jopt.framework.body.scheme.helper.AbstractConstructionOptimizationAlgorithmConfig
com.dna.jopt.framework.body.scheme.helper.ConstructionOptimizationAlgorithmConfig
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ConstructionOptimizationAlgorithmConfig
extends AbstractConstructionOptimizationAlgorithmConfig
Immutable implementation of
AbstractConstructionOptimizationAlgorithmConfig
.
Use the builder to create immutable instances:
ConstructionOptimizationAlgorithmConfig.builder()
.
Use the static factory method to create immutable instances:
ConstructionOptimizationAlgorithmConfig.of()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static final class
Builds instances of typeConstructionOptimizationAlgorithmConfig
.static interface
Nested classes/interfaces inherited from class com.dna.jopt.framework.body.scheme.helper.AbstractConstructionOptimizationAlgorithmConfig
AbstractConstructionOptimizationAlgorithmConfig.ConstructionOptimizationAlgorithm
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forConstructionOptimizationAlgorithmConfig
.Creates an immutable copy of aAbstractConstructionOptimizationAlgorithmConfig
value.boolean
This instance is equal to all instances ofConstructionOptimizationAlgorithmConfig
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:algorithm
.Construct a new immutableConstructionOptimizationAlgorithmConfig
instance.toString()
Prints the immutable valueConstructionOptimizationAlgorithmConfig
with attribute values.withAlgorithm
(AbstractConstructionOptimizationAlgorithmConfig.ConstructionOptimizationAlgorithm value) Copy the current immutable object by setting a value for thealgorithm
attribute.Methods inherited from class com.dna.jopt.framework.body.scheme.helper.AbstractConstructionOptimizationAlgorithmConfig
convert
-
Method Details
-
algorithm
public AbstractConstructionOptimizationAlgorithmConfig.ConstructionOptimizationAlgorithm algorithm()- Specified by:
algorithm
in classAbstractConstructionOptimizationAlgorithmConfig
- Returns:
- The value of the
algorithm
attribute
-
withAlgorithm
public final ConstructionOptimizationAlgorithmConfig withAlgorithm(AbstractConstructionOptimizationAlgorithmConfig.ConstructionOptimizationAlgorithm 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
-
equals
This instance is equal to all instances ofConstructionOptimizationAlgorithmConfig
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:algorithm
. -
toString
Prints the immutable valueConstructionOptimizationAlgorithmConfig
with attribute values. -
of
public static ConstructionOptimizationAlgorithmConfig of(AbstractConstructionOptimizationAlgorithmConfig.ConstructionOptimizationAlgorithm algorithm) Construct a new immutableConstructionOptimizationAlgorithmConfig
instance.- Parameters:
algorithm
- The value for thealgorithm
attribute- Returns:
- An immutable ConstructionOptimizationAlgorithmConfig instance
-
copyOf
public static ConstructionOptimizationAlgorithmConfig copyOf(AbstractConstructionOptimizationAlgorithmConfig instance) Creates an immutable copy of aAbstractConstructionOptimizationAlgorithmConfig
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 ConstructionOptimizationAlgorithmConfig instance
-
builder
Creates a builder forConstructionOptimizationAlgorithmConfig
.ConstructionOptimizationAlgorithmConfig.builder() .algorithm(com.dna.jopt.framework.body.scheme.helper.AbstractConstructionOptimizationAlgorithmConfig.ConstructionOptimizationAlgorithm) // required
algorithm
.build();- Returns:
- A new ConstructionOptimizationAlgorithmConfig builder
-