diff --git a/src/main/kotlin/app/revanced/patcher/cache/Cache.kt b/src/main/kotlin/app/revanced/patcher/cache/Cache.kt index 33a05476..8b7321f9 100644 --- a/src/main/kotlin/app/revanced/patcher/cache/Cache.kt +++ b/src/main/kotlin/app/revanced/patcher/cache/Cache.kt @@ -13,6 +13,12 @@ class Cache( // if the class proxy already exists in the cached proxy list below internal val classProxy = mutableSetOf() + /** + * Find a class by a given class name + * @return A proxy for the first class that matches the class name + */ + fun findClass(className: String) = findClass { it.type.contains(className) } + /** * Find a class by a given predicate * @return A proxy for the first class that matches the predicate