com.mle.play.json.JsonFormats

durationFormat

implicit object durationFormat extends Format[Duration]

Serializes Duration to Long (seconds), deserializes Long to Duration.

Linear Supertypes
Format[Duration], Reads[Duration], Writes[Duration], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. durationFormat
  2. Format
  3. Reads
  4. Writes
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. def andThen[B](rb: Reads[B])(implicit witness: <:<[Duration, JsValue]): Reads[B]

    Definition Classes
    Reads
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def collect[B](error: ValidationError)(f: PartialFunction[Duration, B]): Reads[B]

    Definition Classes
    Reads
  8. def compose[B <: JsValue](rb: Reads[B]): Reads[Duration]

    Definition Classes
    Reads
  9. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  11. def filter(error: ValidationError)(f: (Duration) ⇒ Boolean): Reads[Duration]

    Definition Classes
    Reads
  12. def filter(f: (Duration) ⇒ Boolean): Reads[Duration]

    Definition Classes
    Reads
  13. def filterNot(error: ValidationError)(f: (Duration) ⇒ Boolean): Reads[Duration]

    Definition Classes
    Reads
  14. def filterNot(f: (Duration) ⇒ Boolean): Reads[Duration]

    Definition Classes
    Reads
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def flatMap[B](f: (Duration) ⇒ Reads[B]): Reads[B]

    Definition Classes
    Reads
  17. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  20. def map[B](f: (Duration) ⇒ B): Reads[B]

    Definition Classes
    Reads
  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. def orElse(v: Reads[Duration]): Reads[Duration]

    Definition Classes
    Reads
  25. def reads(json: JsValue): JsResult[Duration]

    Definition Classes
    durationFormat → Reads
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. def transform(transformer: Writes[JsValue]): Writes[Duration]

    Definition Classes
    Writes
  29. def transform(transformer: (JsValue) ⇒ JsValue): Writes[Duration]

    Definition Classes
    Writes
  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def writes(o: Duration): JsValue

    Definition Classes
    durationFormat → Writes

Inherited from Format[Duration]

Inherited from Reads[Duration]

Inherited from Writes[Duration]

Inherited from AnyRef

Inherited from Any

Ungrouped