Class IndexRange

java.lang.Object
com.here.NativeBase
com.here.sdk.search.IndexRange

public final class IndexRange extends NativeBase

Holds information to which part of the text, input query was matched. The first character is denoted by a value of 0.

  • Method Details

    • getStart

      public int getStart()

      Gets the position of the first character that matches a query.

      Returns:

      Position of the first character that matches a query.

    • getEnd

      public int getEnd()

      Gets the position indicating the end of the highlighted part, exclusive.

      Returns:

      Position indicating the end of the highlighted part, exclusive.