Union

org.finos.morphir.datamodel.Data$.Union
case class Union(value: Data, unionSchema: Union)

A instance of a non-discrimiated union-type such as a Scala 3

 type MyUnion = Int | String

Would be defined as

 Union(Schema.Int, Schema.String)

A value of it would defined as:

 Data.Union(Data.Int(123), Union(Schema.Int, Schema.String))

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product