com
.
mle
.
play
.
json
.
JsonFormats
durationFormat
implicit
object
durationFormat
extends
Format
[
Duration
]
Serializes Duration to Long (seconds), deserializes Long to Duration.
Linear Supertypes
Format
[
Duration
],
Reads
[
Duration
],
Writes
[
Duration
],
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
durationFormat
Format
Reads
Writes
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
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
def
andThen
[
B
]
(
rb:
Reads
[
B
]
)
(
implicit
witness:
<:<
[
Duration
,
JsValue
]
)
:
Reads
[
B
]
Definition Classes
Reads
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
collect
[
B
]
(
error:
ValidationError
)
(
f:
PartialFunction
[
Duration
,
B
]
)
:
Reads
[
B
]
Definition Classes
Reads
def
compose
[
B <:
JsValue
]
(
rb:
Reads
[
B
]
)
:
Reads
[
Duration
]
Definition Classes
Reads
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
filter
(
error:
ValidationError
)
(
f: (
Duration
) ⇒
Boolean
)
:
Reads
[
Duration
]
Definition Classes
Reads
def
filter
(
f: (
Duration
) ⇒
Boolean
)
:
Reads
[
Duration
]
Definition Classes
Reads
def
filterNot
(
error:
ValidationError
)
(
f: (
Duration
) ⇒
Boolean
)
:
Reads
[
Duration
]
Definition Classes
Reads
def
filterNot
(
f: (
Duration
) ⇒
Boolean
)
:
Reads
[
Duration
]
Definition Classes
Reads
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
def
flatMap
[
B
]
(
f: (
Duration
) ⇒
Reads
[
B
]
)
:
Reads
[
B
]
Definition Classes
Reads
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
map
[
B
]
(
f: (
Duration
) ⇒
B
)
:
Reads
[
B
]
Definition Classes
Reads
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
orElse
(
v:
Reads
[
Duration
]
)
:
Reads
[
Duration
]
Definition Classes
Reads
def
reads
(
json:
JsValue
)
:
JsResult
[
Duration
]
Definition Classes
durationFormat
→ Reads
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
AnyRef → Any
def
transform
(
transformer:
Writes
[
JsValue
]
)
:
Writes
[
Duration
]
Definition Classes
Writes
def
transform
(
transformer: (
JsValue
) ⇒
JsValue
)
:
Writes
[
Duration
]
Definition Classes
Writes
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
(
...
)
def
writes
(
o:
Duration
)
:
JsValue
Definition Classes
durationFormat
→ Writes
Inherited from
Format
[
Duration
]
Inherited from
Reads
[
Duration
]
Inherited from
Writes
[
Duration
]
Inherited from
AnyRef
Inherited from
Any
Ungrouped
Serializes Duration to Long (seconds), deserializes Long to Duration.