Class OptimizationAlgorithmPluginResult
java.lang.Object
com.dna.jopt.cloud.touroptimizer.pluginservice.algorithm.AbstractOptimizationAlgorithmPluginResult
com.dna.jopt.cloud.touroptimizer.pluginservice.algorithm.OptimizationAlgorithmPluginResult
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class OptimizationAlgorithmPluginResult
extends AbstractOptimizationAlgorithmPluginResult
Immutable implementation of
AbstractOptimizationAlgorithmPluginResult
.
Use the builder to create immutable instances:
OptimizationAlgorithmPluginResult.builder()
.
Use the static factory method to create immutable instances:
OptimizationAlgorithmPluginResult.of()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeOptimizationAlgorithmPluginResult
.static interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forOptimizationAlgorithmPluginResult
.Creates an immutable copy of aAbstractOptimizationAlgorithmPluginResult
value.com.google.common.collect.ImmutableList<IEntity>
ens()
boolean
This instance is equal to all instances ofOptimizationAlgorithmPluginResult
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:ens
,status
.of
(Iterable<? extends IEntity> ens, AlgorithmPluginResultStatus status) Construct a new immutableOptimizationAlgorithmPluginResult
instance.of
(List<IEntity> ens, AlgorithmPluginResultStatus status) Construct a new immutableOptimizationAlgorithmPluginResult
instance.status()
toString()
Prints the immutable valueOptimizationAlgorithmPluginResult
with attribute values.Copy the current immutable object with elements that replace the content ofens
.Copy the current immutable object with elements that replace the content ofens
.Copy the current immutable object by setting a value for thestatus
attribute.
-
Method Details
-
ens
- Specified by:
ens
in classAbstractOptimizationAlgorithmPluginResult
- Returns:
- The value of the
ens
attribute
-
status
- Specified by:
status
in classAbstractOptimizationAlgorithmPluginResult
- Returns:
- The value of the
status
attribute
-
withEns
Copy the current immutable object with elements that replace the content ofens
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withEns
Copy the current immutable object with elements that replace the content ofens
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of ens elements to set- Returns:
- A modified copy of
this
object
-
withStatus
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 ofOptimizationAlgorithmPluginResult
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ens
,status
. -
toString
Prints the immutable valueOptimizationAlgorithmPluginResult
with attribute values. -
of
public static OptimizationAlgorithmPluginResult of(List<IEntity> ens, AlgorithmPluginResultStatus status) Construct a new immutableOptimizationAlgorithmPluginResult
instance.- Parameters:
ens
- The value for theens
attributestatus
- The value for thestatus
attribute- Returns:
- An immutable OptimizationAlgorithmPluginResult instance
-
of
public static OptimizationAlgorithmPluginResult of(Iterable<? extends IEntity> ens, AlgorithmPluginResultStatus status) Construct a new immutableOptimizationAlgorithmPluginResult
instance.- Parameters:
ens
- The value for theens
attributestatus
- The value for thestatus
attribute- Returns:
- An immutable OptimizationAlgorithmPluginResult instance
-
copyOf
public static OptimizationAlgorithmPluginResult copyOf(AbstractOptimizationAlgorithmPluginResult instance) Creates an immutable copy of aAbstractOptimizationAlgorithmPluginResult
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 OptimizationAlgorithmPluginResult instance
-
builder
Creates a builder forOptimizationAlgorithmPluginResult
.OptimizationAlgorithmPluginResult.builder() .addEns|addAllEns(com.dna.jopt.member.bucket.entity.IEntity) //
ens
elements .status(com.dna.jopt.cloud.touroptimizer.pluginservice.algorithm.AlgorithmPluginResultStatus) // requiredstatus
.build();- Returns:
- A new OptimizationAlgorithmPluginResult builder
-