Package io.github.ai4ci.config
Class ImmutableExecutionFacet
java.lang.Object
io.github.ai4ci.config.ImmutableExecutionFacet
- All Implemented Interfaces:
Abstraction.Named
,ExperimentFacet.ExecutionFacet
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableExecutionFacet
extends Object
implements ExperimentFacet.ExecutionFacet
Immutable implementation of
ExperimentFacet.ExecutionFacet
.
Use the builder to create immutable instances:
ImmutableExecutionFacet.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableExecutionFacet
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableExecutionFacet
.static ImmutableExecutionFacet
copyOf
(ExperimentFacet.ExecutionFacet instance) Creates an immutable copy of aExperimentFacet.ExecutionFacet
value.boolean
This instance is equal to all instances ofImmutableExecutionFacet
that have equal attribute values.com.google.common.collect.ImmutableList<PartialExecutionConfiguration>
getName()
int
hashCode()
Computes a hash code from attributes:name
,modifications
.Creates a builder forImmutableExecutionFacet
.prefilled with attibute values ofthis
instance to easily create modified copies.toString()
Prints the immutable valueExecutionFacet
with attribute values.final ImmutableExecutionFacet
withModifications
(PartialExecutionConfiguration... elements) Copy the current immutable object with elements that replace the content ofmodifications
.final ImmutableExecutionFacet
withModifications
(Iterable<? extends PartialExecutionConfiguration> elements) Copy the current immutable object with elements that replace the content ofmodifications
.final ImmutableExecutionFacet
Copy the current immutable object by setting a value for thename
attribute.
-
Method Details
-
getName
- Specified by:
getName
in interfaceAbstraction.Named
- Returns:
- The value of the
name
attribute
-
getModifications
- Specified by:
getModifications
in interfaceExperimentFacet.ExecutionFacet
- Returns:
- The value of the
modifications
attribute
-
withName
Copy the current immutable object by setting a value for thename
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for name- Returns:
- A modified copy of the
this
object
-
withModifications
Copy the current immutable object with elements that replace the content ofmodifications
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withModifications
public final ImmutableExecutionFacet withModifications(Iterable<? extends PartialExecutionConfiguration> elements) Copy the current immutable object with elements that replace the content ofmodifications
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of modifications elements to set- Returns:
- A modified copy of
this
object
-
equals
This instance is equal to all instances ofImmutableExecutionFacet
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:name
,modifications
. -
toString
Prints the immutable valueExecutionFacet
with attribute values. -
copyOf
Creates an immutable copy of aExperimentFacet.ExecutionFacet
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 ExecutionFacet instance
-
toBuilder
Creates a builder forImmutableExecutionFacet
.prefilled with attibute values ofthis
instance to easily create modified copies.- Returns:
- A new ImmutableExecutionFacet builder with attributes of
this
instance
-
builder
Creates a builder forImmutableExecutionFacet
.ImmutableExecutionFacet.builder() .setName(String) // required
name
.addModification|addAllModifications(io.github.ai4ci.config.PartialExecutionConfiguration) //modifications
elements .build();- Returns:
- A new ImmutableExecutionFacet builder
-