Class DiscriminatedUnionMember<D,​V>

    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • of

        public static <D,​V> IDiscriminatedUnionMember<D,​V> of​(D discriminator,
                                                                          V value)
        Type Parameters:
        D - Type of the discriminator.
        V - Type of the value.
        Parameters:
        discriminator - Discriminator that discriminates the union member.
        value - Value of the union member.
        Returns:
        A new member of a discriminated union with the given discriminator and value.