CountryMatch

data class CountryMatch(val country: Country, val matchedField: CountrySearchField? = null, val highlightStart: Int = -1, val highlightLength: Int = 0, val rank: Int = Int.MAX_VALUE)(source)

A country that matched a search query, plus the information needed to rank and highlight it.

Constructors

Link copied to clipboard
constructor(country: Country, matchedField: CountrySearchField? = null, highlightStart: Int = -1, highlightLength: Int = 0, rank: Int = Int.MAX_VALUE)

Properties

Link copied to clipboard

The matched country.

Link copied to clipboard

True when there is a name span worth highlighting in the row.

Link copied to clipboard

Length of the highlighted span.

Link copied to clipboard

Index into Country.displayName where the query matched, or -1 when the match was not on the name and so has nothing to highlight.

Link copied to clipboard

Which field produced the match, or null when the list is unfiltered.

Link copied to clipboard