t

macrame.enums

NumericConverters

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

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[E] with EnumApi[E]
Linear Supertypes
IntConverters[E], FromInt[E], AsInt[E], ShortConverters[E], FromShort[E], AsShort[E], LongConverters[E], FromLong[E], AsLong[E], 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
    Definition Classes
    AsInt
  2. implicit class AsLongOps extends AnyRef
    Definition Classes
    AsLong
  3. implicit class AsShortOps extends AnyRef
    Definition Classes
    AsShort

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def asInt(enum: E): Int
    Definition Classes
    AsInt
    Annotations
    @inline()
  6. def asLong(enum: E): Long
    Definition Classes
    AsLong
    Annotations
    @inline()
  7. def asShort(enum: E): Short
    Definition Classes
    AsShort
    Annotations
    @inline()
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def fromInt(int: Int): Option[E]
    Definition Classes
    FromInt
    Annotations
    @inline()
  13. def fromLong(long: Long): Option[E]
    Definition Classes
    FromLong
    Annotations
    @inline()
  14. def fromShort(short: Short): Option[E]
    Definition Classes
    FromShort
    Annotations
    @inline()
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from IntConverters[E]

Inherited from FromInt[E]

Inherited from AsInt[E]

Inherited from ShortConverters[E]

Inherited from FromShort[E]

Inherited from AsShort[E]

Inherited from LongConverters[E]

Inherited from FromLong[E]

Inherited from AsLong[E]

Inherited from AnyRef

Inherited from Any

Ungrouped