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]) @HotSpotIntrinsicCandidate() @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. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def list[A](implicit reads: Reads[A]): Reads[List[A]]
  15. def map[A](implicit reads: Reads[A]): Reads[Map[String, A]]
  16. 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)).

  17. def maxLength[M](m: Int)(implicit reads: Reads[M], p: (M) => Iterable[_]): Reads[M]
  18. 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)).

  19. def minLength[M](m: Int)(implicit reads: Reads[M], p: (M) => Iterable[_]): Reads[M]
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  23. 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()
  24. 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

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

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

  26. 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

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

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped