SearchResult.MatchRange


class SearchResult.MatchRange


Class providing the position range of matching information.

All ranges are finite, and the left side of the range is always <= the right side of the range.

Example: MatchRange(0, 100) represents hundred ints from 0 to 99."

Summary

Public constructors

MatchRange(start: Int, end: Int)

Creates a new immutable range.

Public functions

Boolean
equals(other: Any?)
Int

Gets the end point (exclusive).

Int

Gets the start point (inclusive).

Int
String

Public constructors

MatchRange

Added in 1.1.0-alpha07
MatchRange(start: Int, end: Int)

Creates a new immutable range.

The endpoints are [start, end); that is the range is bounded. start must be lesser or equal to end.

Parameters
start: Int

The start point (inclusive)

end: Int

The end point (exclusive)

Public functions

equals

fun equals(other: Any?): Boolean

getEnd

Added in 1.1.0-alpha07
fun getEnd(): Int

Gets the end point (exclusive).

getStart

Added in 1.1.0-alpha07
fun getStart(): Int

Gets the start point (inclusive).

hashCode

fun hashCode(): Int

toString

fun toString(): String