Trait

macrame

EnumApi

Related Doc: package macrame

Permalink

trait EnumApi[Enum] extends AnyRef

The API exposed by enumerations created with the @enum macro. Unlike Scala's Enumeration interface, all auto-generated functions are protected so the user can choose which functions to expose on their type.

Enum

The type of the enumeration.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EnumApi
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def asIntImpl(enum: Enum): Int

    Permalink

    Returns an Int representation of the enum.

    Returns an Int representation of the enum. The first listed case is 1, the second 2, and so on.

    Attributes
    protected
  2. abstract def asStringImpl(enum: Enum): String

    Permalink

    Returns a string representation of the enum.

    Returns a string representation of the enum.

    Attributes
    protected
  3. abstract def firstImpl: Enum

    Permalink

    The first case defined in the enum.

    The first case defined in the enum.

    Attributes
    protected
  4. abstract def fromIntImpl(int: Int): Option[Enum]

    Permalink

    Returns the case whose Int representation matches, if there is one.

    Returns the case whose Int representation matches, if there is one.

    Attributes
    protected
  5. abstract def fromStringImpl(str: String): Option[Enum]

    Permalink

    Returns the case whose String representation matches, if there is one.

    Returns the case whose String representation matches, if there is one.

    Attributes
    protected
  6. abstract def lastImpl: Enum

    Permalink

    The last case defined in the enum.

    The last case defined in the enum.

    Attributes
    protected

Concrete 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 asLongImpl(enum: Enum): Long

    Permalink

    Returns a Long representation of the enum.

    Returns a Long representation of the enum. The first listed case is 1, the second 2, and so on.

    Attributes
    protected
  6. def asShortImpl(enum: Enum): Short

    Permalink

    Returns a Short representation of the enum.

    Returns a Short representation of the enum. The first listed case is 1, the second 2, and so on.

    Attributes
    protected
  7. def clone(): AnyRef

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def fromLongImpl(long: Long): Option[Enum]

    Permalink

    Returns the case whose Long representation matches, if there is one.

    Returns the case whose Long representation matches, if there is one.

    Attributes
    protected
  12. def fromShortImpl(short: Short): Option[Enum]

    Permalink

    Returns the case whose Short representation matches, if there is one.

    Returns the case whose Short representation matches, if there is one.

    Attributes
    protected
  13. final def getClass(): Class[_]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  17. def nextImpl(enum: Enum): Option[Enum]

    Permalink

    Returns the case defined just after the given enum, if one exists.

    Returns the case defined just after the given enum, if one exists.

    Attributes
    protected
  18. def nextModImpl(enum: Enum): Enum

    Permalink

    As nextImpl but modular: the last defined case wraps around to the first one.

    As nextImpl but modular: the last defined case wraps around to the first one.

    Attributes
    protected
  19. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  21. def orderingImpl: Ordering[Enum]

    Permalink

    An instance of Ordering based on the definition order of the cases.

    An instance of Ordering based on the definition order of the cases.

    Attributes
    protected
  22. def prevImpl(enum: Enum): Option[Enum]

    Permalink

    Returns the case defined just before the given enum, if one exists.

    Returns the case defined just before the given enum, if one exists.

    Attributes
    protected
  23. def prevModImpl(enum: Enum): Enum

    Permalink

    As prevImpl but modular: the first defined case wraps around to the last one.

    As prevImpl but modular: the first defined case wraps around to the last one.

    Attributes
    protected
  24. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped