Packages

t

play.api.libs.json

ConstraintReads

trait ConstraintReads extends AnyRef

Source
JsConstraints.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConstraintReads
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def email(implicit reads: Reads[String]): Reads[String]
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def filter[A](otherwise: JsonValidationError)(p: (A) => Boolean)(implicit reads: Reads[A]): Reads[A]
  10. def filterNot[A](error: JsonValidationError)(p: (A) => Boolean)(implicit reads: Reads[A]): Reads[A]
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def list[A](implicit reads: Reads[A]): Reads[List[A]]
  16. def map[A](implicit reads: Reads[A]): Reads[Map[String, A]]
  17. def max[O](m: O)(implicit reads: Reads[O], ord: Ordering[O]): Reads[O]

    Defines a maximum value for a Reads.

    Defines a maximum value for a Reads. Combine with min using andKeep, e.g. .read(Reads.min(0.1) andKeep Reads.max(1.0)).

  18. def maxLength[M](m: Int)(implicit reads: Reads[M], p: (M) => Iterable[_]): Reads[M]
  19. def min[O](m: O)(implicit reads: Reads[O], ord: Ordering[O]): Reads[O]

    Defines a minimum value for a Reads.

    Defines a minimum value for a Reads. Combine with max using andKeep, e.g. .read(Reads.min(0) andKeep Reads.max(100)).

  20. def minLength[M](m: Int)(implicit reads: Reads[M], p: (M) => Iterable[_]): Reads[M]
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def of[A](implicit r: Reads[A]): Reads[A]

    The simpler of all Reads that just finds an implicit Reads[A] of the expected type

    The simpler of all Reads that just finds an implicit Reads[A] of the expected type

    Annotations
    @inline()
  25. def optionNoError[A](implicit reads: Reads[A]): Reads[Option[A]]

    Stupidly reads a field as an Option mapping any error (format or missing field) to None

  26. def optionWithNull[T](implicit rds: Reads[T]): Reads[Option[T]]

    very simple optional field Reads that maps "null" to None

  27. def pattern(regex: => Regex, error: String = "error.pattern")(implicit reads: Reads[String]): Reads[String]

    Defines a regular expression constraint for String values, i.e.

    Defines a regular expression constraint for String values, i.e. the string must match the regular expression pattern

  28. def pure[A](a: => A): Reads[A]
  29. def seq[A](implicit reads: Reads[A]): Reads[Seq[A]]
  30. def set[A](implicit reads: Reads[A]): Reads[Set[A]]
  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. def verifying[A](cond: (A) => Boolean)(implicit rds: Reads[A]): Reads[A]
  34. def verifyingIf[A](cond: (A) => Boolean)(subreads: Reads[_])(implicit rds: Reads[A]): Reads[A]
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped