UnrollStrategy
oxygen.meta.K0.SumGeneric.UnrollStrategy
enum 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 Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article