openrndr
0.4.5-dev.4.uncommitted+98ebace
common
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
)
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
)
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
>