Methods Summary |
---|
public java.lang.Object | clone()
RuleBasedBreakIterator cloned = (RuleBasedBreakIterator) super.clone();
cloned.wrapped = (com.ibm.icu4jni.text.RuleBasedBreakIterator) wrapped
.clone();
return cloned;
|
public int | current()
return wrapped.current();
|
public boolean | equals(java.lang.Object o)
if (!(o instanceof RuleBasedBreakIterator)) {
return false;
}
return wrapped.equals(((RuleBasedBreakIterator) o).wrapped);
|
public int | first()
return wrapped.first();
|
public int | following(int offset)
validateOffset(offset);
return wrapped.following(offset);
|
public java.text.CharacterIterator | getText()
return wrapped.getText();
|
public int | hashCode()
return wrapped.hashCode();
|
public boolean | isBoundary(int offset)
validateOffset(offset);
return wrapped.isBoundary(offset);
|
public int | last()
return wrapped.last();
|
public int | next()
return wrapped.next();
|
public int | next(int n)
return wrapped.next(n);
|
public int | preceding(int offset)
validateOffset(offset);
return wrapped.preceding(offset);
|
public int | previous()
return wrapped.previous();
|
public void | setText(java.text.CharacterIterator newText)
// call a method to check if null pointer
newText.current();
wrapped.setText(newText);
|
public java.lang.String | toString()
return wrapped.toString();
|
private void | validateOffset(int offset)
CharacterIterator it = wrapped.getText();
if (offset < it.getBeginIndex() || offset >= it.getEndIndex()) {
throw new IllegalArgumentException();
}
|