aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-05-12 00:53:45 +0200
committerGitHub <noreply@github.com>2024-05-12 00:53:45 +0200
commitd375262cb82d603e8f2be84ef3755829b62955ca (patch)
tree8a80ad30e28438e01a360d5ea4f2e353046c46b6 /src/main/java/at/hannibal2/skyhanni/utils
parentd05565ef8a5afcc89fc5992b2d3ff64ee5f173ca (diff)
downloadSkyHanni-d375262cb82d603e8f2be84ef3755829b62955ca.tar.gz
SkyHanni-d375262cb82d603e8f2be84ef3755829b62955ca.tar.bz2
SkyHanni-d375262cb82d603e8f2be84ef3755829b62955ca.zip
Improvement: sh gui 20s (#1768)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/TimeLimitedCache.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/TimeLimitedCache.kt b/src/main/java/at/hannibal2/skyhanni/utils/TimeLimitedCache.kt
index 9f29b9ff1..d903ada07 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/TimeLimitedCache.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/TimeLimitedCache.kt
@@ -15,9 +15,9 @@ class TimeLimitedCache<K, V>(expireAfterWrite: Duration) {
fun clear() = cache.invalidateAll()
- fun values(): MutableCollection<V> = cache.asMap().values
+ fun values(): Collection<V> = cache.asMap().values
- fun keys(): MutableSet<K> = cache.asMap().keys
+ fun keys(): Set<K> = cache.asMap().keys
fun containsKey(key: K): Boolean = cache.getIfPresent(key) != null
}