src/main/kotlin/com/deflatedpickle/faosdance/backend/NestedHashMap.kt
package com.deflatedpickle.faosdance.backend
class NestedHashMap<K, V> : HashMap<K, V>() {
fun getMap(key: K): NestedHashMap<K, V>? {
return get(key) as NestedHashMap<K, V>
}
fun <IK> getOption(key: K): IK? {
return get(key) as IK
}
fun setOption(key: K, value: V) {
this[key] = value
}
}