class Word
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
int |
getEnd() |
int |
getStart() |
java.lang.String |
getText() |
static Word |
getWord(java.lang.String text,
int index,
boolean before)
Provides the word before or after a given index.
|
java.lang.String |
toString() |
public static Word getWord(java.lang.String text, int index, boolean before)
text
- text to be checkedindex
- index in which to begin search (inclusive)before
- search is before index if true, after otherwisepublic int getStart()
public int getEnd()
public java.lang.String getText()
public java.lang.String toString()
toString
in class java.lang.Object
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.