toggle menu
BotCommands
JVM
switch theme
search in API
BotCommands
/
io.github.freya022.botcommands.api.commands.application.slash.autocomplete
/
FuzzyResult
Fuzzy
Result
@
JvmRecord
data
class
FuzzyResult
<
T
>
(
val
item
:
T
,
val
string
:
String
,
val
distance
:
Double
)
:
Record
,
Comparable
<
FuzzyResult
<
T
>
>
(
source
)
Members
Constructors
Fuzzy
Result
Link copied to clipboard
constructor
(
item
:
T
,
string
:
String
,
distance
:
Double
)
Properties
distance
Link copied to clipboard
val
distance
:
Double
item
Link copied to clipboard
val
item
:
T
string
Link copied to clipboard
val
string
:
String
Functions
compare
To
Link copied to clipboard
open
operator override
fun
compareTo
(
other
:
FuzzyResult
<
T
>
)
:
Int
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
similarity
Link copied to clipboard
fun
similarity
(
)
:
Double