Class ImmutableComposerState

    • Method Detail

      • withForms

        public final ImmutableComposerState withForms​(Map<String,​? extends DialobDocument.FormDocument> 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
      • withRevs

        public final ImmutableComposerState withRevs​(Map<String,​? extends DialobDocument.FormRevisionDocument> entries)
        Copy the current immutable object by replacing the revs 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 revs map
        Returns:
        A modified copy of this object
      • withReleases

        public final ImmutableComposerState withReleases​(Map<String,​? extends DialobDocument.FormReleaseDocument> entries)
        Copy the current immutable object by replacing the releases 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 releases 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: forms, revs, releases.
        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()
            .putForms|putAllForms(String => io.dialob.client.api.DialobDocument.FormDocument) // forms mappings
            .putRevs|putAllRevs(String => io.dialob.client.api.DialobDocument.FormRevisionDocument) // revs mappings
            .putReleases|putAllReleases(String => io.dialob.client.api.DialobDocument.FormReleaseDocument) // releases mappings
            .build();
         
        Returns:
        A new ImmutableComposerState builder