public static final class StringMatcher.Position
extends java.lang.Object
StringMatcher.find(String, int, int).
Note that find() returns
null if there is no match, so the start and end indices are always
non-negative.
| Constructor and Description |
|---|
Position(int start,
int end)
Creates a new
StringMatcher.Position. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getEnd()
Retrieves the index after the last matched character.
|
int |
getStart()
Retrieves the index of the first matched character.
|
int |
hashCode() |
java.lang.String |
toString() |
public Position(int start,
int end)
StringMatcher.Position.start - index of first matched characterend - index after the last matched characterpublic int getStart()
public int getEnd()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object