Class ImmutableUpdate

    • Method Detail

      • getFormEntity

        public io.dialob.api.form.FormEntity getFormEntity()
        Specified by:
        getFormEntity in interface DialobComposer.Update
        Returns:
        The value of the formEntity attribute
      • withId

        public final ImmutableUpdate 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
      • withRev

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

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

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableUpdate 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, rev, formEntity.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

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

        public static ImmutableUpdate.Builder builder()
        Creates a builder for ImmutableUpdate.
         ImmutableUpdate.builder()
            .id(String) // required id
            .rev(String) // required rev
            .formEntity(io.dialob.api.form.FormEntity) // required formEntity
            .build();
         
        Returns:
        A new ImmutableUpdate builder