revanced-patcher/src/main/kotlin/net/revanced/patcher/cache/Cache.kt

14 lines
369 B
Kotlin

package net.revanced.patcher.cache
data class Cache(
val methods: MethodMap = MethodMap()
)
class MethodMap : LinkedHashMap<String, PatchData>() {
override fun get(key: String): PatchData {
return super.get(key) ?: throw MethodNotFoundException("Method $key not found in method cache")
}
}
class MethodNotFoundException(s: String) : Exception(s)