Class/Object

io.leonard

TraitFormat

Related Docs: object TraitFormat | package leonard

Permalink

class TraitFormat[Supertype] extends Format[Supertype]

Linear Supertypes
Format[Supertype], Reads[Supertype], Writes[Supertype], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TraitFormat
  2. Format
  3. Reads
  4. Writes
  5. AnyRef
  6. 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. def <<[Subtype <: Supertype](caseObjectFormat: CaseObjectFormat[Subtype])(implicit tag: ClassTag[Subtype]): TraitFormat[Supertype]

    Permalink
  4. def <<[Subtype <: Supertype](customName: String, format: Format[Subtype])(implicit tag: ClassTag[Subtype]): TraitFormat[Supertype]

    Permalink
  5. def <<[Subtype <: Supertype](format: Format[Subtype])(implicit tag: ClassTag[Subtype]): TraitFormat[Supertype]

    Permalink

    returns

    An immutable copy of the TraitFormat with Subtype added to the list of possible serialisation formats. Complete example: val animalFormat = traitFormat[Animal] << format[Cat] << caseObjectFormat(Nessy)

  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. def andThen[B](rb: Reads[B])(implicit witness: <:<[Supertype, JsValue]): Reads[B]

    Permalink
    Definition Classes
    Reads
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

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

    Permalink
    Definition Classes
    Reads
  11. def compose[B <: JsValue](rb: Reads[B]): Reads[Supertype]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def filter(error: ValidationError)(f: (Supertype) ⇒ Boolean): Reads[Supertype]

    Permalink
    Definition Classes
    Reads
  15. def filter(f: (Supertype) ⇒ Boolean): Reads[Supertype]

    Permalink
    Definition Classes
    Reads
  16. def filterNot(error: ValidationError)(f: (Supertype) ⇒ Boolean): Reads[Supertype]

    Permalink
    Definition Classes
    Reads
  17. def filterNot(f: (Supertype) ⇒ Boolean): Reads[Supertype]

    Permalink
    Definition Classes
    Reads
  18. def finalize(): Unit

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

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

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

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

    Permalink
    Definition Classes
    Any
  23. def map[B](f: (Supertype) ⇒ B): Reads[B]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  27. def orElse(v: Reads[Supertype]): Reads[Supertype]

    Permalink
    Definition Classes
    Reads
  28. def reads(js: JsValue): JsResult[Supertype]

    Permalink
    Definition Classes
    TraitFormat → Reads
  29. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. def transform(transformer: Writes[JsValue]): Writes[Supertype]

    Permalink
    Definition Classes
    Writes
  32. def transform(transformer: (JsValue) ⇒ JsValue): Writes[Supertype]

    Permalink
    Definition Classes
    Writes
  33. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def writes(f: Supertype): JsValue

    Permalink
    Definition Classes
    TraitFormat → Writes

Inherited from Format[Supertype]

Inherited from Reads[Supertype]

Inherited from Writes[Supertype]

Inherited from AnyRef

Inherited from Any

Ungrouped