All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.seiko.imageloader.util.LruCache.kt Maven / Gradle / Ivy

There is a newer version: 1.8.3
Show newest version
package com.seiko.imageloader.util

expect open class LruCache(maxSize: Int) {
    protected open fun sizeOf(key: K, value: V): Int
    protected open fun entryRemoved(evicted: Boolean, key: K, oldValue: V, newValue: V?)
    protected open fun create(key: K): V?
    fun size(): Int
    fun maxSize(): Int
    fun snapshot(): MutableMap
    operator fun get(key: K): V?
    fun put(key: K, value: V): V?
    fun remove(key: K): V?
    fun evictAll()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy