The convention requires the following structure for the enumeration:
sealed trait EnumName extends Itemized
object EnumName {
case object Element1 extends EnumName
case object Element2 extends EnumName
}
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Marker trait for ADTs representing enumerations
The convention requires the following structure for the enumeration:
sealed trait EnumName extends Itemized object EnumName { case object Element1 extends EnumName case object Element2 extends EnumName }