Package io.github.ai4ci.output
Class ImmutableInfectivityProfileCSV
java.lang.Object
io.github.ai4ci.output.ImmutableInfectivityProfileCSV
- All Implemented Interfaces:
CSVWriter.Writeable
,CommonCSV.Model
,InfectivityProfileCSV
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableInfectivityProfileCSV
extends Object
implements InfectivityProfileCSV
Immutable implementation of
InfectivityProfileCSV
.
Use the builder to create immutable instances:
ImmutableInfectivityProfileCSV.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableInfectivityProfileCSV
.Nested classes/interfaces inherited from interface io.github.ai4ci.output.InfectivityProfileCSV
InfectivityProfileCSV.Selector
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableInfectivityProfileCSV
.copyOf
(InfectivityProfileCSV instance) Creates an immutable copy of aInfectivityProfileCSV
value.boolean
This instance is equal to all instances ofImmutableInfectivityProfileCSV
that have equal attribute values.double
int
getTau()
int
hashCode()
Computes a hash code from attributes:modelName
,experimentName
,tau
,probability
.Creates a builder forImmutableInfectivityProfileCSV
.prefilled with attibute values ofthis
instance to easily create modified copies.toString()
Prints the immutable valueInfectivityProfileCSV
with attribute values.withExperimentName
(String value) Copy the current immutable object by setting a value for theexperimentName
attribute.withModelName
(String value) Copy the current immutable object by setting a value for themodelName
attribute.withProbability
(double value) Copy the current immutable object by setting a value for theprobability
attribute.withTau
(int value) Copy the current immutable object by setting a value for thetau
attribute.
-
Method Details
-
getModelName
- Specified by:
getModelName
in interfaceCommonCSV.Model
- Returns:
- The value of the
modelName
attribute
-
getExperimentName
- Specified by:
getExperimentName
in interfaceCommonCSV.Model
- Returns:
- The value of the
experimentName
attribute
-
getTau
public int getTau()- Specified by:
getTau
in interfaceInfectivityProfileCSV
- Returns:
- The value of the
tau
attribute
-
getProbability
public double getProbability()- Specified by:
getProbability
in interfaceInfectivityProfileCSV
- Returns:
- The value of the
probability
attribute
-
withModelName
Copy the current immutable object by setting a value for themodelName
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for modelName- Returns:
- A modified copy of the
this
object
-
withExperimentName
Copy the current immutable object by setting a value for theexperimentName
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for experimentName- Returns:
- A modified copy of the
this
object
-
withTau
Copy the current immutable object by setting a value for thetau
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for tau- Returns:
- A modified copy of the
this
object
-
withProbability
Copy the current immutable object by setting a value for theprobability
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for probability- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableInfectivityProfileCSV
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:modelName
,experimentName
,tau
,probability
. -
toString
Prints the immutable valueInfectivityProfileCSV
with attribute values. -
copyOf
Creates an immutable copy of aInfectivityProfileCSV
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 InfectivityProfileCSV instance
-
toBuilder
Creates a builder forImmutableInfectivityProfileCSV
.prefilled with attibute values ofthis
instance to easily create modified copies.- Returns:
- A new ImmutableInfectivityProfileCSV builder with attributes of
this
instance
-
builder
Creates a builder forImmutableInfectivityProfileCSV
.ImmutableInfectivityProfileCSV.builder() .setModelName(String) // required
modelName
.setExperimentName(String) // requiredexperimentName
.setTau(int) // requiredtau
.setProbability(double) // requiredprobability
.build();- Returns:
- A new ImmutableInfectivityProfileCSV builder
-