Class BoundaryIteratorOfInts
java.lang.Object
com.ibm.icu.segmenter.BoundaryIteratorOfInts
An iterator of segmentation boundaries that can operate in either the forwards or reverse
direction.
When constructed to operate in the forwards direction, the iterator will return all boundaries that are strictly after the input index value provided to the constructor. However, when constructed to operate in the backwards direction, if the input index is already a segmentation boundary, then it will be included as the first value that the iterator returns as it iterates backwards.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BreakIteratorprivate intprivate Segments.IterationDirection -
Constructor Summary
ConstructorsConstructorDescriptionBoundaryIteratorOfInts(BreakIterator breakIter, CharSequence sourceSequence, Segments.IterationDirection direction, int startIdx) -
Method Summary
-
Field Details
-
breakIter
-
direction
-
currIdx
private int currIdx
-
-
Constructor Details
-
BoundaryIteratorOfInts
BoundaryIteratorOfInts(BreakIterator breakIter, CharSequence sourceSequence, Segments.IterationDirection direction, int startIdx)
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-