Package io.github.ai4ci.output
Class ImmutableOutbreakHistoryCSV
java.lang.Object
io.github.ai4ci.output.ImmutableOutbreakHistoryCSV
- All Implemented Interfaces:
CSVWriter.Writeable
,CommonCSV.Execution
,CommonCSV.Model
,CommonCSV.State
,OutbreakHistoryCSV
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableOutbreakHistoryCSV
extends Object
implements OutbreakHistoryCSV
Immutable implementation of
OutbreakHistoryCSV
.
Use the builder to create immutable instances:
ImmutableOutbreakHistoryCSV.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableOutbreakHistoryCSV
.Nested classes/interfaces inherited from interface io.github.ai4ci.output.OutbreakHistoryCSV
OutbreakHistoryCSV.Selector
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableOutbreakHistoryCSV
.static ImmutableOutbreakHistoryCSV
copyOf
(OutbreakHistoryCSV instance) Creates an immutable copy of aOutbreakHistoryCSV
value.boolean
This instance is equal to all instances ofImmutableOutbreakHistoryCSV
that have equal attribute values.long
long
int
int
int
int
getTime()
int
hashCode()
Computes a hash code from attributes:modelName
,experimentName
,modelReplica
,experimentReplica
,time
,observationTime
,currentTestPositivesBySampleDate
,currentTestNegativesBySampleDate
.Creates a builder forImmutableOutbreakHistoryCSV
.prefilled with attibute values ofthis
instance to easily create modified copies.toString()
Prints the immutable valueOutbreakHistoryCSV
with attribute values.withCurrentTestNegativesBySampleDate
(long value) Copy the current immutable object by setting a value for thecurrentTestNegativesBySampleDate
attribute.withCurrentTestPositivesBySampleDate
(long value) Copy the current immutable object by setting a value for thecurrentTestPositivesBySampleDate
attribute.withExperimentName
(String value) Copy the current immutable object by setting a value for theexperimentName
attribute.withExperimentReplica
(int value) Copy the current immutable object by setting a value for theexperimentReplica
attribute.withModelName
(String value) Copy the current immutable object by setting a value for themodelName
attribute.withModelReplica
(int value) Copy the current immutable object by setting a value for themodelReplica
attribute.withObservationTime
(int value) Copy the current immutable object by setting a value for theobservationTime
attribute.withTime
(int value) Copy the current immutable object by setting a value for thetime
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
-
getModelReplica
public int getModelReplica()- Specified by:
getModelReplica
in interfaceCommonCSV.Execution
- Returns:
- The value of the
modelReplica
attribute
-
getExperimentReplica
public int getExperimentReplica()- Specified by:
getExperimentReplica
in interfaceCommonCSV.Execution
- Returns:
- The value of the
experimentReplica
attribute
-
getTime
public int getTime()- Specified by:
getTime
in interfaceCommonCSV.State
- Returns:
- The value of the
time
attribute
-
getObservationTime
public int getObservationTime()- Specified by:
getObservationTime
in interfaceOutbreakHistoryCSV
- Returns:
- The value of the
observationTime
attribute
-
getCurrentTestPositivesBySampleDate
public long getCurrentTestPositivesBySampleDate()- Specified by:
getCurrentTestPositivesBySampleDate
in interfaceOutbreakHistoryCSV
- Returns:
- The value of the
currentTestPositivesBySampleDate
attribute
-
getCurrentTestNegativesBySampleDate
public long getCurrentTestNegativesBySampleDate()- Specified by:
getCurrentTestNegativesBySampleDate
in interfaceOutbreakHistoryCSV
- Returns:
- The value of the
currentTestNegativesBySampleDate
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
-
withModelReplica
Copy the current immutable object by setting a value for themodelReplica
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for modelReplica- Returns:
- A modified copy of the
this
object
-
withExperimentReplica
Copy the current immutable object by setting a value for theexperimentReplica
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for experimentReplica- Returns:
- A modified copy of the
this
object
-
withTime
Copy the current immutable object by setting a value for thetime
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for time- Returns:
- A modified copy of the
this
object
-
withObservationTime
Copy the current immutable object by setting a value for theobservationTime
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for observationTime- Returns:
- A modified copy of the
this
object
-
withCurrentTestPositivesBySampleDate
Copy the current immutable object by setting a value for thecurrentTestPositivesBySampleDate
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for currentTestPositivesBySampleDate- Returns:
- A modified copy of the
this
object
-
withCurrentTestNegativesBySampleDate
Copy the current immutable object by setting a value for thecurrentTestNegativesBySampleDate
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for currentTestNegativesBySampleDate- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableOutbreakHistoryCSV
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:modelName
,experimentName
,modelReplica
,experimentReplica
,time
,observationTime
,currentTestPositivesBySampleDate
,currentTestNegativesBySampleDate
. -
toString
Prints the immutable valueOutbreakHistoryCSV
with attribute values. -
copyOf
Creates an immutable copy of aOutbreakHistoryCSV
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 OutbreakHistoryCSV instance
-
toBuilder
Creates a builder forImmutableOutbreakHistoryCSV
.prefilled with attibute values ofthis
instance to easily create modified copies.- Returns:
- A new ImmutableOutbreakHistoryCSV builder with attributes of
this
instance
-
builder
Creates a builder forImmutableOutbreakHistoryCSV
.ImmutableOutbreakHistoryCSV.builder() .setModelName(String) // required
modelName
.setExperimentName(String) // requiredexperimentName
.setModelReplica(int) // requiredmodelReplica
.setExperimentReplica(int) // requiredexperimentReplica
.setTime(int) // requiredtime
.setObservationTime(int) // requiredobservationTime
.setCurrentTestPositivesBySampleDate(long) // requiredcurrentTestPositivesBySampleDate
.setCurrentTestNegativesBySampleDate(long) // requiredcurrentTestNegativesBySampleDate
.build();- Returns:
- A new ImmutableOutbreakHistoryCSV builder
-