EnumCompanion

abstract class EnumCompanion[A <: scala.reflect.Enum] extends Idx[A]

EnumCompanion is a type to be extended by all enum companion objects to integrate them with Scalqa containers.

This is a recommended step, which might not be nessesasy in simple cases

 enum Direction:
   case Up,Down,Left,Right

 object Direction extends EnumCompanion[Direction]

 Direction.stream.tp

 // Output
 Stream(Up, Down, Left, Right)
Source
EnumCompanion.scala
trait Idx[EnumCompanion.A]
trait Collection[EnumCompanion.A]
trait Able.Size
trait Able.Stream[EnumCompanion.A]
class java.lang.Object
trait scala.Matchable
class Any
class Fx.JavaFx.Enum.Companion[Fx.JavaFx.Enum.Companion.ENUM, Fx.JavaFx.Enum.Companion.J_ENUM]
object Fx.HPos
object Fx.Pos
object Fx.Side
object Fx.VPos
object Week.Day

Def

def apply(i: Int): A
@scala.annotation.threadUnsafe
lazy val pack: Pack[A]

All values

All values

Packed values

Source
EnumCompanion.scala
def size: Int
override def stream: Stream[A]

Stream

Stream

Enum values as a stream, ordered by ordinal property

Definition Classes
Source
EnumCompanion.scala
protected def values: Array[A]