diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/TimeLimitedCache.kt | 4 |
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 } |