Package io.github.ai4ci.output
Class ImmutableContactCSV
java.lang.Object
io.github.ai4ci.output.ImmutableContactCSV
- All Implemented Interfaces:
CSVWriter.Writeable
,CommonCSV.Execution
,CommonCSV.Model
,CommonCSV.State
,ContactCSV
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableContactCSV
extends Object
implements ContactCSV
Immutable implementation of
ContactCSV
.
Use the builder to create immutable instances:
ImmutableContactCSV.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableContactCSV
.Nested classes/interfaces inherited from interface io.github.ai4ci.output.ContactCSV
ContactCSV.Selector
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableContactCSV.Builder
builder()
Creates a builder forImmutableContactCSV
.static ImmutableContactCSV
copyOf
(ContactCSV instance) Creates an immutable copy of aContactCSV
value.boolean
This instance is equal to all instances ofImmutableContactCSV
that have equal attribute values.int
int
int
getId()
int
int
getTime()
int
hashCode()
Computes a hash code from attributes:modelName
,experimentName
,modelReplica
,experimentReplica
,time
,id
,contactId
,detected
.boolean
Creates a builder forImmutableContactCSV
.prefilled with attibute values ofthis
instance to easily create modified copies.toString()
Prints the immutable valueContactCSV
with attribute values.final ImmutableContactCSV
withContactId
(int value) Copy the current immutable object by setting a value for thecontactId
attribute.final ImmutableContactCSV
withDetected
(boolean value) Copy the current immutable object by setting a value for thedetected
attribute.final ImmutableContactCSV
withExperimentName
(String value) Copy the current immutable object by setting a value for theexperimentName
attribute.final ImmutableContactCSV
withExperimentReplica
(int value) Copy the current immutable object by setting a value for theexperimentReplica
attribute.final ImmutableContactCSV
withId
(int value) Copy the current immutable object by setting a value for theid
attribute.final ImmutableContactCSV
withModelName
(String value) Copy the current immutable object by setting a value for themodelName
attribute.final ImmutableContactCSV
withModelReplica
(int value) Copy the current immutable object by setting a value for themodelReplica
attribute.final ImmutableContactCSV
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
-
getId
public int getId()- Specified by:
getId
in interfaceContactCSV
- Returns:
- The value of the
id
attribute
-
getContactId
public int getContactId()- Specified by:
getContactId
in interfaceContactCSV
- Returns:
- The value of the
contactId
attribute
-
isDetected
public boolean isDetected()- Specified by:
isDetected
in interfaceContactCSV
- Returns:
- The value of the
detected
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
-
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
-
withContactId
Copy the current immutable object by setting a value for thecontactId
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for contactId- Returns:
- A modified copy of the
this
object
-
withDetected
Copy the current immutable object by setting a value for thedetected
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for detected- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableContactCSV
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:modelName
,experimentName
,modelReplica
,experimentReplica
,time
,id
,contactId
,detected
. -
toString
Prints the immutable valueContactCSV
with attribute values. -
copyOf
Creates an immutable copy of aContactCSV
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 ContactCSV instance
-
toBuilder
Creates a builder forImmutableContactCSV
.prefilled with attibute values ofthis
instance to easily create modified copies.- Returns:
- A new ImmutableContactCSV builder with attributes of
this
instance
-
builder
Creates a builder forImmutableContactCSV
.ImmutableContactCSV.builder() .setModelName(String) // required
modelName
.setExperimentName(String) // requiredexperimentName
.setModelReplica(int) // requiredmodelReplica
.setExperimentReplica(int) // requiredexperimentReplica
.setTime(int) // requiredtime
.setId(int) // requiredid
.setContactId(int) // requiredcontactId
.setDetected(boolean) // requireddetected
.build();- Returns:
- A new ImmutableContactCSV builder
-