Class ImmutableFormValueSet

    • Method Detail

      • getId

        public String getId()
        Specified by:
        getId in interface FormValueSet
        Returns:
        The value of the id attribute
      • withId

        public final ImmutableFormValueSet 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 (can be null)
        Returns:
        A modified copy of the this object
      • withEntries

        public final ImmutableFormValueSet withEntries​(FormValueSetEntry... elements)
        Copy the current immutable object with elements that replace the content of entries.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withEntries

        public final ImmutableFormValueSet withEntries​(Iterable<? extends FormValueSetEntry> elements)
        Copy the current immutable object with elements that replace the content of entries. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of entries elements to set
        Returns:
        A modified copy of this object
      • withAdditionalProperties

        public final ImmutableFormValueSet withAdditionalProperties​(Map<String,​? extends Object> entries)
        Copy the current immutable object by replacing the additionalProperties 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 additionalProperties map
        Returns:
        A modified copy of this object
      • equals

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

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

        public static ImmutableFormValueSet copyOf​(FormValueSet instance)
        Creates an immutable copy of a FormValueSet 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 FormValueSet instance
      • builder

        public static ImmutableFormValueSet.Builder builder()
        Creates a builder for ImmutableFormValueSet.
         ImmutableFormValueSet.builder()
            .id(String | null) // nullable id
            .addEntries|addAllEntries(io.dialob.api.form.FormValueSetEntry) // entries elements
            .putAdditionalProperties|putAllAdditionalProperties(String => Object) // additionalProperties mappings
            .build();
         
        Returns:
        A new ImmutableFormValueSet builder