Cache

interface Cache<T>

Simple cache interface for storing objects.

Types

Companion
Link copied to clipboard
common
object Companion

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
retrieveIfPresent
Link copied to clipboard
common
abstract fun retrieveIfPresent(key: String): Maybe<T>
Retrieves a tileset region by a key if present.
store
Link copied to clipboard
common
abstract fun store(key: String, obj: T): T
Caches the given object and then returns it.
toString
Link copied to clipboard
common
open fun toString(): String

Inheritors

NoOpCache
Link copied to clipboard
DefaultCache
Link copied to clipboard

Sources

(source)
Link copied to clipboard