protected abstract static class CommonBreakIterator.Run
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
length
The length of this run.
|
Constructor and Description |
---|
CommonBreakIterator.Run() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
consume(char ch)
Returns
true if this run consumes ch , false otherwise. |
protected void |
init()
Resets this run to the initial state.
|
protected abstract boolean |
isValid(char ch)
Whether this run accepts that character; does not update state.
|
protected boolean consume(char ch)
true
if this run consumes ch
, false
otherwise. If
true
is returned, the length of the receiver is adjusted accordingly.ch
- the character to testtrue
if ch
was consumedprotected abstract boolean isValid(char ch)
consume
.ch
- the character to testtrue
if ch
is acceptedprotected void init()