object IsoDateReads extends Reads[Date]
- Alphabetic
- By Inheritance
- IsoDateReads
- Reads
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
- val WithMillis: Regex
- val WithMillisAndTz: Regex
- val WithTz: Regex
-
def
andThen[B](rb: Reads[B])(implicit witness: <:<[Date, JsValue]): Reads[B]
- Definition Classes
- Reads
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
collect[B](error: JsonValidationError)(f: PartialFunction[Date, B]): Reads[B]
- Definition Classes
- Reads
-
def
composeWith[B <: JsValue](rb: Reads[B]): Reads[Date]
Creates a new
Reads
, which first passes the input JSON torb
, and then it executes thisReads
on the pre-processed JSON (ifrb
has successfully handled the input JSON).Creates a new
Reads
, which first passes the input JSON torb
, and then it executes thisReads
on the pre-processed JSON (ifrb
has successfully handled the input JSON).- Definition Classes
- Reads
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
filter(error: JsonValidationError)(f: (Date) ⇒ Boolean): Reads[Date]
- Definition Classes
- Reads
-
def
filter(f: (Date) ⇒ Boolean): Reads[Date]
- Definition Classes
- Reads
-
def
filterNot(error: JsonValidationError)(f: (Date) ⇒ Boolean): Reads[Date]
- Definition Classes
- Reads
-
def
filterNot(f: (Date) ⇒ Boolean): Reads[Date]
- Definition Classes
- Reads
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flatMap[B](f: (Date) ⇒ Reads[B]): Reads[B]
- Definition Classes
- Reads
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
map[B](f: (Date) ⇒ B): Reads[B]
Create a new
Reads
which maps the value produced by thisReads
.Create a new
Reads
which maps the value produced by thisReads
.- B
The type of the value produced by the new
Reads
.- f
the function applied on the result of the current instance, if successful
- Definition Classes
- Reads
- val millis: String
- val millisAndTz: String
- val mini: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
orElse(v: Reads[Date]): Reads[Date]
Creates a new
Reads
, based on this one, which first executes thisReads
' logic then, if thisReads
resulted in aJsError
, runs the secondReads
on the JsValue. -
def
preprocess(f: PartialFunction[JsValue, JsValue]): Reads[Date]
Creates a new
Reads
, which first transforms the input JSON using the giventranformer
, and then it executes thisReads
on the pre-processed JSON.Creates a new
Reads
, which first transforms the input JSON using the giventranformer
, and then it executes thisReads
on the pre-processed JSON.- Definition Classes
- Reads
-
def
reads(json: JsValue): JsResult[Date]
Convert the JsValue into a A
Convert the JsValue into a A
- Definition Classes
- IsoDateReads → Reads
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- val tz: String
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
widen[B >: Date]: Reads[B]
Widen this
Reads
.Widen this
Reads
.import play.api.libs.json.Reads def simple(r: Reads[Dog]): Reads[Animal] = r.widen[Animal] def combine(dog: Reads[Dog], cat: Reads[Cat]): Reads[Animal] = dog.orElse(cat).orElse(Reads.failed[Animal]("Unsupported Animal"))
- Definition Classes
- Reads