Key

class Key(key: String, extras: Map<String, String>) : Parcelable

The cache key for a Bitmap in the memory cache.

Parameters

key

The value returned by Keyer.key (or a custom value).

extras

Extra values that differentiate the associated cached value from other values with the same key. This map must be treated as immutable and should not be modified.

Constructors

Key
Link copied to clipboard
fun Key(key: String, extras: Map<String, String> = emptyMap())
The value returned by Keyer.key (or a custom value).

Functions

copy
Link copied to clipboard
fun copy(key: String = this.key, extras: Map<String, String> = this.extras): MemoryCache.Key
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

extras
Link copied to clipboard
val extras: Map<String, String>
Extra values that differentiate the associated cached value from other values with the same key.
key
Link copied to clipboard
val key: String
The value returned by Keyer.key (or a custom value).