Package io.dialob.client.api
Class ImmutableFillEntry
- java.lang.Object
-
- io.dialob.client.api.ImmutableFillEntry
-
- All Implemented Interfaces:
DialobFill.FillEntry,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableFillEntry extends Object implements DialobFill.FillEntry
Immutable implementation ofDialobFill.FillEntry.Use the builder to create immutable instances:
ImmutableFillEntry.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableFillEntry.BuilderBuilds instances of typeImmutableFillEntry.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableFillEntry.Builderbuilder()Creates a builder forImmutableFillEntry.static ImmutableFillEntrycopyOf(DialobFill.FillEntry instance)Creates an immutable copy of aDialobFill.FillEntryvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableFillEntrythat have equal attribute values.io.dialob.api.form.FormgetForm()StringgetId()io.dialob.api.questionnaire.QuestionnairegetQuestionnaire()inthashCode()Computes a hash code from attributes:id,questionnaire,form.StringtoString()Prints the immutable valueFillEntrywith attribute values.ImmutableFillEntrywithForm(io.dialob.api.form.Form value)Copy the current immutable object by setting a value for theformattribute.ImmutableFillEntrywithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableFillEntrywithQuestionnaire(io.dialob.api.questionnaire.Questionnaire value)Copy the current immutable object by setting a value for thequestionnaireattribute.
-
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceDialobFill.FillEntry- Returns:
- The value of the
idattribute
-
getQuestionnaire
public io.dialob.api.questionnaire.Questionnaire getQuestionnaire()
- Specified by:
getQuestionnairein interfaceDialobFill.FillEntry- Returns:
- The value of the
questionnaireattribute
-
getForm
public io.dialob.api.form.Form getForm()
- Specified by:
getFormin interfaceDialobFill.FillEntry- Returns:
- The value of the
formattribute
-
withId
public final ImmutableFillEntry withId(String value)
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
withQuestionnaire
public final ImmutableFillEntry withQuestionnaire(io.dialob.api.questionnaire.Questionnaire value)
Copy the current immutable object by setting a value for thequestionnaireattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for questionnaire- Returns:
- A modified copy of the
thisobject
-
withForm
public final ImmutableFillEntry withForm(io.dialob.api.form.Form value)
Copy the current immutable object by setting a value for theformattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for form- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableFillEntrythat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,questionnaire,form.
-
toString
public String toString()
Prints the immutable valueFillEntrywith attribute values.
-
copyOf
public static ImmutableFillEntry copyOf(DialobFill.FillEntry instance)
Creates an immutable copy of aDialobFill.FillEntryvalue. 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 FillEntry instance
-
builder
public static ImmutableFillEntry.Builder builder()
Creates a builder forImmutableFillEntry.ImmutableFillEntry.builder() .id(String) // requiredid.questionnaire(io.dialob.api.questionnaire.Questionnaire) // requiredquestionnaire.form(io.dialob.api.form.Form) // requiredform.build();- Returns:
- A new ImmutableFillEntry builder
-
-