SearchResult.MatchRange
public final class SearchResult.MatchRange
Class providing the position range of a text match 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(int start, int end)Creates a new immutable range. |
Public methods |
|
|---|---|
boolean |
|
int |
getEnd()Gets the end point (exclusive). |
int |
getStart()Gets the start point (inclusive). |
int |
hashCode() |
@NonNull String |
toString() |
Public constructors
MatchRange
Added in 1.1.0
public MatchRange(int start, int end)
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 | |
|---|---|
int start |
The start point (inclusive) |
int end |
The end point (exclusive) |