Class ImmutableComposerState

    • Method Detail

      • withTags

        public final ImmutableComposerState withTags​(Map<String,​? extends DialobComposer.ComposerEntity<io.dialob.api.form.FormTag>> entries)
        Copy the current immutable object by replacing the tags map with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        entries - The entries to be added to the tags map
        Returns:
        A modified copy of this object
      • withForms

        public final ImmutableComposerState withForms​(Map<String,​? extends DialobComposer.ComposerEntity<DialobComposer.FormAndTags>> entries)
        Copy the current immutable object by replacing the forms map with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        entries - The entries to be added to the forms map
        Returns:
        A modified copy of this object
      • equals

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

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

        public static ImmutableComposerState.Builder builder()
        Creates a builder for ImmutableComposerState.
         ImmutableComposerState.builder()
            .putTags|putAllTags(String => io.dialob.client.api.DialobComposer.ComposerEntity&lt;io.dialob.api.form.FormTag&gt;) // tags mappings
            .putForms|putAllForms(String => io.dialob.client.api.DialobComposer.ComposerEntity&lt;io.dialob.client.api.DialobComposer.FormAndTags&gt;) // forms mappings
            .build();
         
        Returns:
        A new ImmutableComposerState builder