AutocompleteResults

data class AutocompleteResults(matches: List<String>, helpText: String?)

Data class representing an autocompletion result.

Constructors

AutocompleteResults
Link copied to clipboard
fun AutocompleteResults(matches: List<String> = listOf(), helpText: String? = null)

Functions

component1
Link copied to clipboard
operator fun component1(): List<String>
component2
Link copied to clipboard
operator fun component2(): String?
copy
Link copied to clipboard
fun copy(matches: List<String> = listOf(), helpText: String? = null): AutocompleteResults
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

helpText
Link copied to clipboard
val helpText: String? = null

String to print out instead of showing autocomplete matches.

matches
Link copied to clipboard
val matches: List<String>

List of valid matches. Each match should be a full input string after applying autocompletion (I.E. Don't truncate to the cursor position).

Sources

jvm source
Link copied to clipboard