openrndr
Toggle table of contents
0.4.5-dev.17.uncommitted+81afe70
common
Platform filter
common
Switch theme
Search in API
openrndr
openrndr-gl-common
/
org.openrndr.internal.glcommon
/
LRUCache
LRUCache
class
LRUCache
<
K
,
V
>
(
val
capacity
:
Int
)
(
source
)
Members
Constructors
LRUCache
Link copied to clipboard
constructor
(
capacity
:
Int
)
Properties
capacity
Link copied to clipboard
val
capacity
:
Int
map
Link copied to clipboard
val
map
:
MutableMap
<
K
,
V
>
order
Link copied to clipboard
val
order
:
ArrayDeque
<
K
>
Functions
get
Link copied to clipboard
fun
get
(
key
:
K
)
:
V
?
get
Or
Set
Link copied to clipboard
fun
getOrSet
(
key
:
K
,
forceSet
:
Boolean
,
valueFunction
:
(
)
->
V
)
:
V
set
Link copied to clipboard
fun
set
(
key
:
K
,
value
:
V
)