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
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeOptimizationAlgorithmPreparationPluginResult.static interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forOptimizationAlgorithmPreparationPluginResult.Creates an immutable copy of aAbstractOptimizationAlgorithmPreparationPluginResultvalue.booleanThis instance is equal to all instances ofOptimizationAlgorithmPreparationPluginResultthat have equal attribute values.inthashCode()Computes a hash code from attributes:status.of(AlgorithmPluginResultStatus status) Construct a new immutableOptimizationAlgorithmPreparationPluginResultinstance.status()toString()Prints the immutable valueOptimizationAlgorithmPreparationPluginResultwith attribute values.Copy the current immutable object by setting a value for thestatusattribute.
-
Method Details
-
status
- Specified by:
statusin classAbstractOptimizationAlgorithmPreparationPluginResult- Returns:
- The value of the
statusattribute
-
withStatus
public final OptimizationAlgorithmPreparationPluginResult withStatus(AlgorithmPluginResultStatus value) Copy the current immutable object by setting a value for thestatusattribute. 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
thisobject
-
equals
This instance is equal to all instances ofOptimizationAlgorithmPreparationPluginResultthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:status. -
toString
Prints the immutable valueOptimizationAlgorithmPreparationPluginResultwith attribute values. -
of
Construct a new immutableOptimizationAlgorithmPreparationPluginResultinstance.- Parameters:
status- The value for thestatusattribute- Returns:
- An immutable OptimizationAlgorithmPreparationPluginResult instance
-
copyOf
public static OptimizationAlgorithmPreparationPluginResult copyOf(AbstractOptimizationAlgorithmPreparationPluginResult instance) Creates an immutable copy of aAbstractOptimizationAlgorithmPreparationPluginResultvalue. 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) // requiredstatus.build();- Returns:
- A new OptimizationAlgorithmPreparationPluginResult builder
-