public class SimpleFilteredSentenceBreakIterator extends BreakIterator
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleFilteredSentenceBreakIterator.Builder |
DONE, KIND_CHARACTER, KIND_LINE, KIND_SENTENCE, KIND_TITLE, KIND_WORD, WORD_IDEO, WORD_IDEO_LIMIT, WORD_KANA, WORD_KANA_LIMIT, WORD_LETTER, WORD_LETTER_LIMIT, WORD_NONE, WORD_NONE_LIMIT, WORD_NUMBER, WORD_NUMBER_LIMIT| Constructor and Description |
|---|
SimpleFilteredSentenceBreakIterator(BreakIterator adoptBreakIterator,
CharsTrie forwardsPartialTrie,
CharsTrie backwardsTrie) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Clone method.
|
int |
current()
Return the iterator's current position.
|
boolean |
equals(Object obj)
Compares this instance with the specified object and indicates if they
are equal.
|
int |
first()
Set the iterator to the first boundary position.
|
int |
following(int offset)
Sets the iterator's current iteration position to be the first
boundary position following the specified position.
|
CharacterIterator |
getText()
Returns a CharacterIterator over the text being analyzed.
|
int |
hashCode()
Returns an integer hash code for this object.
|
int |
last()
Set the iterator to the last boundary position.
|
int |
next()
Advances the iterator forward one boundary.
|
int |
next(int n)
Move the iterator by the specified number of steps in the text.
|
int |
preceding(int offset)
Sets the iterator's current iteration position to be the last
boundary position preceding the specified position.
|
int |
previous()
Move the iterator backward one boundary.
|
void |
setText(CharacterIterator newText)
Sets the iterator to analyze a new piece of text.
|
getAvailableLocales, getAvailableULocales, getBreakInstance, getCharacterInstance, getCharacterInstance, getCharacterInstance, getLineInstance, getLineInstance, getLineInstance, getLocale, getRuleStatus, getRuleStatusVec, getSentenceInstance, getSentenceInstance, getSentenceInstance, getTitleInstance, getTitleInstance, getTitleInstance, getWordInstance, getWordInstance, getWordInstance, isBoundary, registerInstance, registerInstance, setText, unregisterpublic SimpleFilteredSentenceBreakIterator(BreakIterator adoptBreakIterator, CharsTrie forwardsPartialTrie, CharsTrie backwardsTrie)
adoptBreakIterator - break iterator to adoptforwardsPartialTrie - forward & partial char trie to adoptbackwardsTrie - backward trie to adoptpublic int next()
BreakIteratornext in class BreakIteratorpublic boolean equals(Object obj)
Objecto must represent the same object
as this instance using a class-specific comparison. The general contract
is that this comparison should be reflexive, symmetric, and transitive.
Also, no object reference other than null is equal to null.
The default implementation returns true only if this ==
o. See Writing a correct
equals method
if you intend implementing your own equals method.
The general contract for the equals and Object.hashCode() methods is that if equals returns true for
any two objects, then hashCode() must return the same value for
these objects. This means that subclasses of Object usually
override either both methods or neither of them.
equals in class Objectobj - the object to compare this instance with.true if the specified object is equal to this Object; false otherwise.Object.hashCode()public int hashCode()
ObjectObject.equals(java.lang.Object) returns true must return
the same hash code value. This means that subclasses of Object
usually override both methods or neither method.
Note that hash values must not change over time unless information used in equals comparisons also changes.
See Writing a correct
hashCode method
if you intend implementing your own hashCode method.
hashCode in class ObjectObject.equals(java.lang.Object)public Object clone()
BreakIteratorclone in class BreakIteratorpublic int first()
BreakIteratorfirst in class BreakIteratorpublic int last()
BreakIteratorlast in class BreakIteratorpublic int next(int n)
BreakIteratornext in class BreakIteratorn - The number of boundaries to advance over (if positive, moves
forward; if negative, moves backwards).public int previous()
BreakIteratorprevious in class BreakIteratorpublic int following(int offset)
BreakIteratorfollowing in class BreakIteratoroffset - The character position to start searching from.public int current()
BreakIteratorcurrent in class BreakIteratorpublic int preceding(int offset)
BreakIteratorpreceding in class BreakIteratoroffset - The character position to start searching from.public CharacterIterator getText()
BreakIteratorgetText in class BreakIteratorpublic void setText(CharacterIterator newText)
BreakIteratorsetText in class BreakIteratornewText - A CharacterIterator referring to the text
to analyze with this BreakIterator (the iterator's current
position is ignored, but its other state is significant).