zircon.core
/
org.hexworks.zircon.api.util
/
Cache
common
jvm
Cache
interface
Cache
<
T
>
Content copied to clipboard
Simple cache interface for storing objects.
Types
Functions
Sources
Inheritors
Types
Companion
Link copied to clipboard
common
object
Companion
Content copied to clipboard
Functions
equals
Link copied to clipboard
common
open operator fun
equals
(other:
Any
?):
Boolean
Content copied to clipboard
hashCode
Link copied to clipboard
common
open fun
hashCode
():
Int
Content copied to clipboard
retrieveIfPresent
Link copied to clipboard
common
abstract fun
retrieveIfPresent
(key:
String
):
Maybe
<
T
>
Content copied to clipboard
Retrieves a tileset region by a
key
if present.
store
Link copied to clipboard
common
abstract fun
store
(key:
String
, obj:
T
):
T
Content copied to clipboard
Caches the given object and then returns it.
toString
Link copied to clipboard
common
open fun
toString
():
String
Content copied to clipboard
Inheritors
NoOpCache
Link copied to clipboard
DefaultCache
Link copied to clipboard
Sources
(source)
Link copied to clipboard