Package

io.buildo

enumero

Permalink

package enumero

Visibility
  1. Public
  2. All

Type Members

  1. trait CaseEnum extends Product with Serializable

    Permalink

    Marker trait for ADTs representing enumerations

    Marker trait for ADTs representing enumerations

    The convention requires the following structure for the enumeration: sealed trait EnumName extends CaseEnum object EnumName { case object Element1 extends EnumName case object Element2 extends EnumName }

  2. trait CaseEnumIndex[T <: IndexedCaseEnum] extends AnyRef

    Permalink
  3. trait CaseEnumSerialization[T <: CaseEnum] extends AnyRef

    Permalink

    Typeclass with conversions to and from strings for ADTs representing enumerations

  4. trait IndexedCaseEnum extends CaseEnum

    Permalink

    Marker trait for ADTs representing enumerations with an associated value ("index")

    Marker trait for ADTs representing enumerations with an associated value ("index")

    The convention requires the following structure for the enumeration: sealed trait EnumName extends CaseEnum { type Index = IndexType } object EnumName { case object Element1 extends EnumName { val index = element1Index } case object Element2 extends EnumName { val index = element2Index } }

Ungrouped