Commit dbc5cfbd authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Added int lists and double list to config conversions

parent dd9036c8
......@@ -430,6 +430,18 @@ object ConfigUtils extends Logging {
else Nil
/** Convert ConfigValue to List[Double] */
implicit def configValue2doubleList(value: ConfigValue): List[Double] = {
if (requiredValue(value)) any2list(value.value).map(any2double(_))
else Nil
/** Convert ConfigValue to List[Int] */
implicit def configValue2intList(value: ConfigValue): List[Int] = {
if (requiredValue(value)) any2list(value.value).map(any2int(_))
else Nil
/** Convert ConfigValue to Set[String] */
implicit def configValue2stringSet(value: ConfigValue): Set[String] = {
if (requiredValue(value)) any2stringSet(value.value)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment