Skip to content
Snippets Groups Projects
Commit 6f7bd525 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Added more scaladocs

parent 5dd91714
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,12 @@ object ConfigUtils extends Logging {
}
}
/**
* Get nested value
* @param map Map to search in
* @param path Path to the value
* @return Some(value) or None if not found
*/
def getValueFromPath(map: Map[String, Any], path: List[String]): Option[Any] = {
Some(path.foldLeft(map.asInstanceOf[Any])((m, s) => {
m match {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment