ConsoleCommands / org.lazywizard.console / CommandUtils / findBestStringMatch

findBestStringMatch

open static fun findBestStringMatch(id: String, toSearch: MutableCollection<String>): String open static fun findBestStringMatch(id: String, vararg sources: MutableCollection<String>): MutableEntry<String, MutableCollection<String>>

Return
A Map.Entry whose key contains the closest match to id (or null if no match was found), and whose value contains the Collection the match came from, if one was found.