toggle menu
lavalink-client
8032599f5ba3aa74ec7b1b1c47c40b3d7e9919bb-SNAPSHOT
jvm
switch theme
search in API
lavalink-client
/
dev.arbjerg.lavalink.internal.loadbalancing
/
LRUCache
LRUCache
class
LRUCache
<
K
,
V
>
(
limit
:
Int
)
:
LinkedHashMap
<
K
,
V
>
Members
Constructors
LRUCache
Link copied to clipboard
constructor
(
limit
:
Int
)
Properties
entries
Link copied to clipboard
open
override
val
entries
:
MutableSet
<
MutableMap.MutableEntry
<
K
,
V
>
>
keys
Link copied to clipboard
open
override
val
keys
:
MutableSet
<
K
>
size
Link copied to clipboard
open
override
val
size
:
Int
values
Link copied to clipboard
open
override
val
values
:
MutableCollection
<
V
>
Functions
clear
Link copied to clipboard
open
override
fun
clear
(
)
clone
Link copied to clipboard
open
override
fun
clone
(
)
:
Any
compute
Link copied to clipboard
open
override
fun
compute
(
p0
:
K
,
p1
:
BiFunction
<
in
K
,
in
V
?
,
out
V
?
>
)
:
V
?
compute
If
Absent
Link copied to clipboard
open
override
fun
computeIfAbsent
(
p0
:
K
,
p1
:
Function
<
in
K
,
out
V
>
)
:
V
compute
If
Present
Link copied to clipboard
open
override
fun
computeIfPresent
(
p0
:
K
,
p1
:
BiFunction
<
in
K
,
in
V
&
Any
,
out
V
?
>
)
:
V
?
contains
Key
Link copied to clipboard
open
override
fun
containsKey
(
key
:
K
)
:
Boolean
contains
Value
Link copied to clipboard
open
override
fun
containsValue
(
value
:
V
)
:
Boolean
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
for
Each
Link copied to clipboard
open
override
fun
forEach
(
p0
:
BiConsumer
<
in
K
,
in
V
>
)
get
Link copied to clipboard
open
operator override
fun
get
(
key
:
K
)
:
V
?
get
Or
Default
Link copied to clipboard
open
override
fun
getOrDefault
(
key
:
K
,
defaultValue
:
V
)
:
V
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
is
Empty
Link copied to clipboard
open
override
fun
isEmpty
(
)
:
Boolean
merge
Link copied to clipboard
open
override
fun
merge
(
p0
:
K
,
p1
:
V
&
Any
,
p2
:
BiFunction
<
in
V
&
Any
,
in
V
&
Any
,
out
V
?
>
)
:
V
?
put
Link copied to clipboard
open
override
fun
put
(
key
:
K
,
value
:
V
)
:
V
?
put
All
Link copied to clipboard
open
override
fun
putAll
(
from
:
Map
<
out
K
,
V
>
)
put
If
Absent
Link copied to clipboard
open
override
fun
putIfAbsent
(
p0
:
K
,
p1
:
V
)
:
V
?
remove
Link copied to clipboard
open
override
fun
remove
(
key
:
K
)
:
V
?
open
override
fun
remove
(
key
:
K
,
value
:
V
)
:
Boolean
replace
Link copied to clipboard
open
override
fun
replace
(
p0
:
K
,
p1
:
V
)
:
V
?
open
override
fun
replace
(
p0
:
K
,
p1
:
V
,
p2
:
V
)
:
Boolean
replace
All
Link copied to clipboard
open
override
fun
replaceAll
(
p0
:
BiFunction
<
in
K
,
in
V
,
out
V
>
)
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String