Trait

play.api.data.mapping

DateRules

Related Doc: package mapping

Permalink

trait DateRules extends AnyRef

This trait provides default Rule implementations, from String to various date types and format

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

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 clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def date(format: String = "yyyy-MM-dd", corrector: (String) ⇒ String = identity): Rule[String, Date]

    Permalink

    Rule for the java.util.Date type.

    Rule for the java.util.Date type.

    corrector

    a simple string transformation function that can be used to transform input String before parsing. Useful when standards are not exactly respected and require a few tweaks

  7. implicit val date: Rule[String, Date]

    Permalink

    default Rule for the java.util.Date type.

    default Rule for the java.util.Date type. It uses the default date format: yyyy-MM-dd

  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. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  14. val isoDate: Rule[String, Date]

    Permalink

    ISO 8601 Reads

  15. implicit val jodaDate: Rule[String, DateTime]

    Permalink

    the default implicit JodaDate reads It uses the default date format: yyyy-MM-dd

  16. def jodaDateRule(pattern: String, corrector: (String) ⇒ String = identity): Rule[String, DateTime]

    Permalink

    Rule for the org.joda.time.DateTime type.

    Rule for the org.joda.time.DateTime type.

    pattern

    a date pattern, as specified in java.text.SimpleDateFormat.

    corrector

    a simple string transformation function that can be used to transform input String before parsing. Useful when standards are not exactly respected and require a few tweaks

  17. implicit val jodaLocalDate: Rule[String, LocalDate]

    Permalink

    the default implicit Rule for org.joda.time.LocalDate

  18. implicit def jodaLocalDateRule(pattern: String, corrector: (String) ⇒ String = identity): Rule[String, LocalDate]

    Permalink
  19. implicit def jodaTime: Rule[Long, DateTime]

    Permalink

    default Rule for the java.util.DateTime type.

  20. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  23. implicit val sqlDate: Rule[String, Date]

    Permalink

    the default implicit Rule for java.sql.Date

  24. def sqlDateRule(pattern: String, corrector: (String) ⇒ String = identity): Rule[String, Date]

    Permalink

    Rule for the java.sql.Date type.

    Rule for the java.sql.Date type.

    pattern

    a date pattern, as specified in java.text.SimpleDateFormat.

    corrector

    a simple string transformation function that can be used to transform input String before parsing. Useful when standards are not exactly respected and require a few tweaks

  25. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped