EnumCase

zio.blocks.typeid.TypeDefKind.EnumCase
final case class EnumCase(parentEnum: TypeRepr, ordinal: Int, isObjectCase: Boolean) extends TypeDefKind

An individual enum case (when represented as its own type).

Value parameters

isObjectCase

True for case Red, false for case RGB(...)

ordinal

The ordinal index of this case

parentEnum

Reference to the parent enum type

Attributes

Source
TypeDefKind.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait TypeDefKind
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def baseTypes: List[TypeRepr]

The base types (parent classes/traits) of this type definition.

The base types (parent classes/traits) of this type definition.

Attributes

Definition Classes
Source
TypeDefKind.scala

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala