Trait

macrame.enums

NumericConverters

Related Doc: package enums

Permalink

trait NumericConverters[Enum] extends LongConverters[Enum] with ShortConverters[Enum] with IntConverters[Enum]

This trait provides the numeric/enumeration conversions from IntConverters, ShortConverters, and LongConverters. As with those traits you must extend the companion object of the enumeration.

@enum class Color {
  Red
  Blue
  Yellow
}
object Color extends NumericConverters[Color]
Self Type
NumericConverters[Enum] with EnumApi[Enum]
Linear Supertypes
IntConverters[Enum], FromInt[Enum], AsInt[Enum], ShortConverters[Enum], FromShort[Enum], AsShort[Enum], LongConverters[Enum], FromLong[Enum], AsLong[Enum], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NumericConverters
  2. IntConverters
  3. FromInt
  4. AsInt
  5. ShortConverters
  6. FromShort
  7. AsShort
  8. LongConverters
  9. FromLong
  10. AsLong
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit class AsIntOps extends AnyRef

    Permalink
    Definition Classes
    AsInt
  2. implicit class AsLongOps extends AnyRef

    Permalink
    Definition Classes
    AsLong
  3. implicit class AsShortOps extends AnyRef

    Permalink
    Definition Classes
    AsShort

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def asInt(enum: Enum): Int

    Permalink
    Definition Classes
    AsInt
    Annotations
    @inline()
  6. def asLong(enum: Enum): Long

    Permalink
    Definition Classes
    AsLong
    Annotations
    @inline()
  7. def asShort(enum: Enum): Short

    Permalink
    Definition Classes
    AsShort
    Annotations
    @inline()
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def fromInt(int: Int): Option[Enum]

    Permalink
    Definition Classes
    FromInt
    Annotations
    @inline()
  13. def fromLong(long: Long): Option[Enum]

    Permalink
    Definition Classes
    FromLong
    Annotations
    @inline()
  14. def fromShort(short: Short): Option[Enum]

    Permalink
    Definition Classes
    FromShort
    Annotations
    @inline()
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from IntConverters[Enum]

Inherited from FromInt[Enum]

Inherited from AsInt[Enum]

Inherited from ShortConverters[Enum]

Inherited from FromShort[Enum]

Inherited from AsShort[Enum]

Inherited from LongConverters[Enum]

Inherited from FromLong[Enum]

Inherited from AsLong[Enum]

Inherited from AnyRef

Inherited from Any

Ungrouped