toggle menu
doodle
0.10.3
common
switch theme
search in API
core
/
io.nacular.doodle.utils
/
LeastRecentlyUsedCache
Least
Recently
Used
Cache
common
class
LeastRecentlyUsedCache
<
K
,
V
>
(
maxSize
:
Int
)
:
MutableMap
<
K
,
V
>
Created by Nicholas Eddy on 3/22/20.
Members
Constructors
Least
Recently
Used
Cache
Link copied to clipboard
common
constructor
(
maxSize
:
Int
)
Properties
entries
Link copied to clipboard
common
open
override
val
entries
:
MutableSet
<
MutableMap.MutableEntry
<
K
,
V
>
>
keys
Link copied to clipboard
common
open
override
val
keys
:
MutableSet
<
K
>
size
Link copied to clipboard
common
open
override
val
size
:
Int
values
Link copied to clipboard
common
open
override
val
values
:
MutableList
<
V
>
Functions
clear
Link copied to clipboard
common
open
override
fun
clear
(
)
contains
Key
Link copied to clipboard
common
open
override
fun
containsKey
(
key
:
K
)
:
Boolean
contains
Value
Link copied to clipboard
common
open
override
fun
containsValue
(
value
:
V
)
:
Boolean
get
Link copied to clipboard
common
open
operator override
fun
get
(
key
:
K
)
:
V
?
is
Empty
Link copied to clipboard
common
open
override
fun
isEmpty
(
)
:
Boolean
put
Link copied to clipboard
common
open
override
fun
put
(
key
:
K
,
value
:
V
)
:
V
?
put
All
Link copied to clipboard
common
open
override
fun
putAll
(
from
:
Map
<
out
K
,
V
>
)
remove
Link copied to clipboard
common
open
override
fun
remove
(
key
:
K
)
:
V
?