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