sdk-search / com.tomtom.online.sdk.search.data.autocomplete.response / Match

Match

open class Match : Serializable

Informs which part of the input query is represented by the segment.

Constructors

<init>

Match()

Empty constructor for the Match.

Match(offset: Int, length: Int)

Default constructor for the Match.

Properties

length

var length: Int

Length of the matched substring.

offset

var offset: Int

Starting offset of the inputQuery substring matching the segment. The offset of the first character is 0.

Functions

getLength

open fun getLength(): Int

Returns a length of the matched substring.

getOffset

open fun getOffset(): Int

Returns a starting offset of the inputQuery substring matching the segment. The offset of the first character is 0.

toString

open fun toString(): String