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

Added getFileList function

parent 9e5781c3
package nl.lumc.sasc.biopet.core.config package nl.lumc.sasc.biopet.core.config
import java.io.File
class ConfigValue(val requestIndex: ConfigValueIndex, val foundIndex: ConfigValueIndex, val value: Any, val default: Boolean) { class ConfigValue(val requestIndex: ConfigValueIndex, val foundIndex: ConfigValueIndex, val value: Any, val default: Boolean) {
def getString = Configurable.any2string(value) def getString = Configurable.any2string(value)
def getInt = Configurable.any2int(value) def getInt = Configurable.any2int(value)
def getDouble = Configurable.any2double(value) def getDouble = Configurable.any2double(value)
def getList = Configurable.any2list(value) def getList = Configurable.any2list(value)
def getFileList: List[File] = for (file <- Configurable.any2stringList(value)) yield new File(file)
def getMap = Configurable.any2map(value) def getMap = Configurable.any2map(value)
def getBoolean = Configurable.any2boolean(value) def getBoolean = Configurable.any2boolean(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