trait ConstraintReads extends AnyRef
- Alphabetic
- By Inheritance
- ConstraintReads
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def email(implicit reads: Reads[String]): Reads[String]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def filter[A](otherwise: JsonValidationError)(p: (A) => Boolean)(implicit reads: Reads[A]): Reads[A]
- def filterNot[A](error: JsonValidationError)(p: (A) => Boolean)(implicit reads: Reads[A]): Reads[A]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def list[A](implicit reads: Reads[A]): Reads[List[A]]
- def map[A](implicit reads: Reads[A]): Reads[Map[String, A]]
- 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
usingandKeep
, e.g..read(Reads.min(0.1) andKeep Reads.max(1.0))
. - def maxLength[M](m: Int)(implicit reads: Reads[M], p: (M) => Iterable[_]): Reads[M]
- 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
usingandKeep
, e.g..read(Reads.min(0) andKeep Reads.max(100))
. - def minLength[M](m: Int)(implicit reads: Reads[M], p: (M) => Iterable[_]): Reads[M]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- 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()
- 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
- def optionWithNull[T](implicit rds: Reads[T]): Reads[Option[T]]
very simple optional field Reads that maps "null" to None
- 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 - def pure[A](a: => A): Reads[A]
- def seq[A](implicit reads: Reads[A]): Reads[Seq[A]]
- def set[A](implicit reads: Reads[A]): Reads[Set[A]]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def verifying[A](cond: (A) => Boolean)(implicit rds: Reads[A]): Reads[A]
- def verifyingIf[A](cond: (A) => Boolean)(subreads: Reads[_])(implicit rds: Reads[A]): Reads[A]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)