DeflatedPickle/FAOSDance

View on GitHub
src/main/kotlin/com/deflatedpickle/faosdance/backend/NestedHashMap.kt

Summary

Maintainability
A
0 mins
Test Coverage
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
    }
}