Class ImmutableFillEntry

    • Method Detail

      • getQuestionnaire

        public io.dialob.api.questionnaire.Questionnaire getQuestionnaire()
        Specified by:
        getQuestionnaire in interface DialobFill.FillEntry
        Returns:
        The value of the questionnaire attribute
      • getForm

        public io.dialob.api.form.Form getForm()
        Specified by:
        getForm in interface DialobFill.FillEntry
        Returns:
        The value of the form attribute
      • withId

        public final ImmutableFillEntry withId​(String value)
        Copy the current immutable object by setting a value for the id attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for id
        Returns:
        A modified copy of the this object
      • withQuestionnaire

        public final ImmutableFillEntry withQuestionnaire​(io.dialob.api.questionnaire.Questionnaire value)
        Copy the current immutable object by setting a value for the questionnaire attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for questionnaire
        Returns:
        A modified copy of the this object
      • withForm

        public final ImmutableFillEntry withForm​(io.dialob.api.form.Form value)
        Copy the current immutable object by setting a value for the form attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for form
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableFillEntry that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: id, questionnaire, form.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value FillEntry with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • copyOf

        public static ImmutableFillEntry copyOf​(DialobFill.FillEntry instance)
        Creates an immutable copy of a DialobFill.FillEntry 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 FillEntry instance
      • builder

        public static ImmutableFillEntry.Builder builder()
        Creates a builder for ImmutableFillEntry.
         ImmutableFillEntry.builder()
            .id(String) // required id
            .questionnaire(io.dialob.api.questionnaire.Questionnaire) // required questionnaire
            .form(io.dialob.api.form.Form) // required form
            .build();
         
        Returns:
        A new ImmutableFillEntry builder