Interface IUnionValueBuilder<D>

    • Method Detail

      • buildDiscriminatedMember

        IDiscriminatedUnionMember<D,​?> buildDiscriminatedMember()
        Returns:
        The discriminated union member representing the current value of this union builder. null when the union value descriptor does not define any members.
      • getDiscriminatorClass

        Class<D> getDiscriminatorClass()
        Returns:
        The type of the discriminating value.
        Since:
        8.1.0
      • value

        IUnionValueBuilder<D> value​(D discriminator,
                                    IValueCreator creator)
        Sets the value of the union at the given member discriminator to the given value.
        Parameters:
        discriminator - Discriminator for the union member.
        creator - Value creator the value of the union member value.
        Returns:
        This value builder for chaining method calls.
      • value

        default IUnionValueBuilder<D> value​(D discriminator,
                                            Object value)
        Sets the value of the union at the given member discriminator to the given value.
        Parameters:
        discriminator - Discriminator for the union member.
        value - The value of the union member value.
        Returns:
        This value builder for chaining method calls.
      • value

        default IUnionValueBuilder<D> value​(IDiscriminatedUnionMember<D,​?> value)
        Sets the value of the union to the given member.
        Parameters:
        value - The union member value to set.
        Returns:
        This value builder for chaining method calls.