org.megam.common

enumeration

package enumeration

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. enumeration
  2. EnumerationImplicits
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait EnumReader[T] extends AnyRef

  2. trait EnumUnapply[T <: Enumeration] extends AnyRef

    By mixing this into your enum you are able to pattern match on string values that you want to convert to enum values (iif they are valid).

  3. trait Enumeration extends Serializable

  4. class EnumerationException extends Exception

  5. trait EnumerationImplicits extends AnyRef

  6. implicit class RichString extends AnyRef

    Definition Classes
    EnumerationImplicits

Value Members

  1. object Enumeration extends EnumerationImplicits with Serializable

    here for backward compatability for code that import com.

  2. def enumReader[T <: Enumeration](reader: (String) ⇒ Option[T]): EnumReader[T]

    shortcut to create an EnumReader

    shortcut to create an EnumReader

    T

    the enum type to convert

    reader

    the method to convert a string to your enum

    returns

    an EnumReader that knows how to read a string into your enum

  3. implicit def enumerationJSON[T <: Enumeration](implicit reader: EnumReader[T], m: Manifest[T]): net.liftweb.json.scalaz.JsonScalaz.JSON[T]

    Definition Classes
    EnumerationImplicits
  4. def lowerEnumReader[T <: Enumeration](values: T*): EnumReader[T]

    creates an EnumReader that converts a string into an enum if the lowercase version of that string matches the lowercase of the enum

    creates an EnumReader that converts a string into an enum if the lowercase version of that string matches the lowercase of the enum

    T

    the enumeration type

    values

    the enumeration values that are candidates to convert

    returns

    an EnumReader that has the aforementioned properties

  5. def upperEnumReader[T <: Enumeration](values: T*): EnumReader[T]

    creates an EnumReader that converts a string into an enum if the uppercase version of that string matches the uppercase of the enum

    creates an EnumReader that converts a string into an enum if the uppercase version of that string matches the uppercase of the enum

    T

    the enumeration type

    values

    the enumeration values that are candidates to convert

    returns

    an EnumReader that has the aforementioned properties

Inherited from EnumerationImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped