Package io.github.ai4ci.output
Class ImmutablePersonDemographicsCSV
java.lang.Object
io.github.ai4ci.output.ImmutablePersonDemographicsCSV
- All Implemented Interfaces:
CSVWriter.Writeable
,CommonCSV.Execution
,CommonCSV.Model
,PersonDemographicsCSV
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutablePersonDemographicsCSV
extends Object
implements PersonDemographicsCSV
Immutable implementation of
PersonDemographicsCSV
.
Use the builder to create immutable instances:
ImmutablePersonDemographicsCSV.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutablePersonDemographicsCSV
.Nested classes/interfaces inherited from interface io.github.ai4ci.output.PersonDemographicsCSV
PersonDemographicsCSV.Selector
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutablePersonDemographicsCSV
.copyOf
(PersonDemographicsCSV instance) Creates an immutable copy of aPersonDemographicsCSV
value.boolean
This instance is equal to all instances ofImmutablePersonDemographicsCSV
that have equal attribute values.double
getAge()
int
long
long
int
getId()
int
int
hashCode()
Computes a hash code from attributes:modelName
,experimentName
,modelReplica
,experimentReplica
,id
,age
,mobilityBaseline
,appUseProbability
,complianceBaseline
,hilbertX
,hilbertY
.Creates a builder forImmutablePersonDemographicsCSV
.prefilled with attibute values ofthis
instance to easily create modified copies.toString()
Prints the immutable valuePersonDemographicsCSV
with attribute values.withAge
(double value) Copy the current immutable object by setting a value for theage
attribute.withAppUseProbability
(Double value) Copy the current immutable object by setting a value for theappUseProbability
attribute.withComplianceBaseline
(Double value) Copy the current immutable object by setting a value for thecomplianceBaseline
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.withHilbertX
(long value) Copy the current immutable object by setting a value for thehilbertX
attribute.withHilbertY
(long value) Copy the current immutable object by setting a value for thehilbertY
attribute.withId
(int value) Copy the current immutable object by setting a value for theid
attribute.withMobilityBaseline
(Double value) Copy the current immutable object by setting a value for themobilityBaseline
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.
-
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
-
getId
public int getId()- Specified by:
getId
in interfacePersonDemographicsCSV
- Returns:
- The value of the
id
attribute
-
getAge
public double getAge()- Specified by:
getAge
in interfacePersonDemographicsCSV
- Returns:
- The value of the
age
attribute
-
getMobilityBaseline
- Specified by:
getMobilityBaseline
in interfacePersonDemographicsCSV
- Returns:
- The value of the
mobilityBaseline
attribute
-
getAppUseProbability
- Specified by:
getAppUseProbability
in interfacePersonDemographicsCSV
- Returns:
- The value of the
appUseProbability
attribute
-
getComplianceBaseline
- Specified by:
getComplianceBaseline
in interfacePersonDemographicsCSV
- Returns:
- The value of the
complianceBaseline
attribute
-
getHilbertX
public long getHilbertX()- Specified by:
getHilbertX
in interfacePersonDemographicsCSV
- Returns:
- The value of the
hilbertX
attribute
-
getHilbertY
public long getHilbertY()- Specified by:
getHilbertY
in interfacePersonDemographicsCSV
- Returns:
- The value of the
hilbertY
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
-
withId
Copy the current immutable object by setting a value for theid
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for id- Returns:
- A modified copy of the
this
object
-
withAge
Copy the current immutable object by setting a value for theage
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for age- Returns:
- A modified copy of the
this
object
-
withMobilityBaseline
Copy the current immutable object by setting a value for themobilityBaseline
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for mobilityBaseline- Returns:
- A modified copy of the
this
object
-
withAppUseProbability
Copy the current immutable object by setting a value for theappUseProbability
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for appUseProbability- Returns:
- A modified copy of the
this
object
-
withComplianceBaseline
Copy the current immutable object by setting a value for thecomplianceBaseline
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for complianceBaseline- Returns:
- A modified copy of the
this
object
-
withHilbertX
Copy the current immutable object by setting a value for thehilbertX
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for hilbertX- Returns:
- A modified copy of the
this
object
-
withHilbertY
Copy the current immutable object by setting a value for thehilbertY
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for hilbertY- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutablePersonDemographicsCSV
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:modelName
,experimentName
,modelReplica
,experimentReplica
,id
,age
,mobilityBaseline
,appUseProbability
,complianceBaseline
,hilbertX
,hilbertY
. -
toString
Prints the immutable valuePersonDemographicsCSV
with attribute values. -
copyOf
Creates an immutable copy of aPersonDemographicsCSV
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 PersonDemographicsCSV instance
-
toBuilder
Creates a builder forImmutablePersonDemographicsCSV
.prefilled with attibute values ofthis
instance to easily create modified copies.- Returns:
- A new ImmutablePersonDemographicsCSV builder with attributes of
this
instance
-
builder
Creates a builder forImmutablePersonDemographicsCSV
.ImmutablePersonDemographicsCSV.builder() .setModelName(String) // required
modelName
.setExperimentName(String) // requiredexperimentName
.setModelReplica(int) // requiredmodelReplica
.setExperimentReplica(int) // requiredexperimentReplica
.setId(int) // requiredid
.setAge(double) // requiredage
.setMobilityBaseline(Double) // requiredmobilityBaseline
.setAppUseProbability(Double) // requiredappUseProbability
.setComplianceBaseline(Double) // requiredcomplianceBaseline
.setHilbertX(long) // requiredhilbertX
.setHilbertY(long) // requiredhilbertY
.build();- Returns:
- A new ImmutablePersonDemographicsCSV builder
-