Interface IDiscriminatedUnionMember<D,V>

Type Parameters:
D - Type of the discriminator that identifies the type of this member.
V - Type of the member's value.
All Known Implementing Classes:
DiscriminatedUnionMember

public interface IDiscriminatedUnionMember<D,V>
Represents a member of a discriminated union, in the form of tuples (Discriminator, Value). For example, members of Number | String are (Number, 0, (Number, 1, or (String, "foo".
Since:
7.0.0
Author:
XIMA MEDIA GmbH
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
  • Method Details

    • getDiscriminator

      D getDiscriminator()
      Returns:
      The discriminator that identifies the type of this member.
    • getValue

      V getValue()
      Returns:
      The value of this member.