
com.freya02.botcommands.api.commands.application.slash.autocomplete.AutocompleteMode Maven / Gradle / Ivy
package com.freya02.botcommands.api.commands.application.slash.autocomplete;
import java.util.Collection;
/**
* See values
*/
public enum AutocompleteMode {
/**
* Sorts the strings by fuzzy search score
*
This shows the most relevant results most of the time, regardless of if the user did a few mistakes when typing
*
* @see AutocompleteAlgorithms#fuzzyMatching(Collection, ToStringFunction, String)
*/
FUZZY,
/**
* Sorts the strings by the smallest string that also starts with the user query
*
Might be useful for when exact names are needed
*
* @see AutocompleteAlgorithms#fuzzyMatchingWithContinuity(Collection, ToStringFunction, String)
*/
CONTINUITY
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy