UnrollStrategy

oxygen.meta.K0.SumGeneric.UnrollStrategy

How to handle sealed trait hierarchies.

sealed trait Root

sealed trait Child1 extends Root
case object A extends Child1
case object B extends Child1

sealed trait Child2 extends Root
case object D extends Child2
case object C extends Child2

Unroll: SumGeneric(Root)(ProductGeneric(A), ProductGeneric(B), ProductGeneric(C), ProductGeneric(D)) Nested: SumGeneric(Root)(SumGeneric(Child1)(ProductGeneric(A), ProductGeneric(B)), SumGeneric(Child2)(ProductGeneric(C), ProductGeneric(D)))

Attributes

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

Members list

Type members

Enum entries

case Nested extends UnrollStrategy
case Unroll extends UnrollStrategy