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](customName: String, caseObjectFormat: CaseObjectFormat[Subtype])(implicit tag: ClassTag[Subtype]): TraitFormat[Supertype]

    Permalink
  4. def <<[Subtype <: Supertype](caseObjectFormat: CaseObjectFormat[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. def <<[Subtype <: Supertype](customName: String, format: Format[Subtype])(implicit tag: ClassTag[Subtype]): TraitFormat[Supertype]

    Permalink
  7. final def ==(arg0: Any): Boolean

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. 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