mirror of
https://github.com/lightbend/config.git
synced 2025-03-22 15:20:26 +08:00
call getMilliseconds in ApiExamples.scala
This commit is contained in:
parent
8ea188ed59
commit
43337aa315
@ -19,6 +19,7 @@ class ApiExamples {
|
|||||||
val a: Int = conf.getInt("ints.fortyTwo")
|
val a: Int = conf.getInt("ints.fortyTwo")
|
||||||
val obj: ConfigObject = conf.getObject("ints")
|
val obj: ConfigObject = conf.getObject("ints")
|
||||||
val c: Int = obj.getInt("fortyTwo")
|
val c: Int = obj.getInt("fortyTwo")
|
||||||
|
val ms: Long = conf.getMilliseconds("durations.halfSecond")
|
||||||
|
|
||||||
// this is unfortunate; asScala creates a mutable map but
|
// this is unfortunate; asScala creates a mutable map but
|
||||||
// the ConfigObject is in fact immutable.
|
// the ConfigObject is in fact immutable.
|
||||||
|
Loading…
Reference in New Issue
Block a user