Class OptimizationAlgorithmPreparationPluginResult
java.lang.Object
com.dna.jopt.cloud.touroptimizer.pluginservice.algorithm.AbstractOptimizationAlgorithmPreparationPluginResult
com.dna.jopt.cloud.touroptimizer.pluginservice.algorithm.OptimizationAlgorithmPreparationPluginResult
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class OptimizationAlgorithmPreparationPluginResult
extends AbstractOptimizationAlgorithmPreparationPluginResult
Immutable implementation of
AbstractOptimizationAlgorithmPreparationPluginResult
.
Use the builder to create immutable instances:
OptimizationAlgorithmPreparationPluginResult.builder()
.
Use the static factory method to create immutable instances:
OptimizationAlgorithmPreparationPluginResult.of()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeOptimizationAlgorithmPreparationPluginResult
.static interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forOptimizationAlgorithmPreparationPluginResult
.Creates an immutable copy of aAbstractOptimizationAlgorithmPreparationPluginResult
value.boolean
This instance is equal to all instances ofOptimizationAlgorithmPreparationPluginResult
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:status
.of
(AlgorithmPluginResultStatus status) Construct a new immutableOptimizationAlgorithmPreparationPluginResult
instance.status()
toString()
Prints the immutable valueOptimizationAlgorithmPreparationPluginResult
with attribute values.Copy the current immutable object by setting a value for thestatus
attribute.
-
Method Details
-
status
- Specified by:
status
in classAbstractOptimizationAlgorithmPreparationPluginResult
- Returns:
- The value of the
status
attribute
-
withStatus
public final OptimizationAlgorithmPreparationPluginResult withStatus(AlgorithmPluginResultStatus value) Copy the current immutable object by setting a value for thestatus
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for status- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofOptimizationAlgorithmPreparationPluginResult
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:status
. -
toString
Prints the immutable valueOptimizationAlgorithmPreparationPluginResult
with attribute values. -
of
Construct a new immutableOptimizationAlgorithmPreparationPluginResult
instance.- Parameters:
status
- The value for thestatus
attribute- Returns:
- An immutable OptimizationAlgorithmPreparationPluginResult instance
-
copyOf
public static OptimizationAlgorithmPreparationPluginResult copyOf(AbstractOptimizationAlgorithmPreparationPluginResult instance) Creates an immutable copy of aAbstractOptimizationAlgorithmPreparationPluginResult
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 OptimizationAlgorithmPreparationPluginResult instance
-
builder
Creates a builder forOptimizationAlgorithmPreparationPluginResult
.OptimizationAlgorithmPreparationPluginResult.builder() .status(com.dna.jopt.cloud.touroptimizer.pluginservice.algorithm.AlgorithmPluginResultStatus) // required
status
.build();- Returns:
- A new OptimizationAlgorithmPreparationPluginResult builder
-