• 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 Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getEnd()
      Gets the position indicating the end of the highlighted part, exclusive.
      int getStart()
      Gets the position of the first character that matches a query.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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.