< prev index next >

src/java.base/share/classes/sun/text/normalizer/ReplaceableUCharacterIterator.java

Print this page

        

*** 148,165 **** } return DONE; } /** ! * <p>Sets the currentIndex to the specified currentIndex in the text and returns that * single UTF16 character at currentIndex. ! * This assumes the text is stored as 16-bit code units.</p> * @param currentIndex the currentIndex within the text. * @exception IllegalArgumentException is thrown if an invalid currentIndex is * supplied. i.e. currentIndex is out of bounds. - * @return the character at the specified currentIndex or DONE if the specified - * currentIndex is equal to the end of the text. */ public void setIndex(int currentIndex) { if (currentIndex < 0 || currentIndex > replaceable.length()) { throw new IllegalArgumentException(); } --- 148,163 ---- } return DONE; } /** ! * Sets the currentIndex to the specified currentIndex in the text and returns that * single UTF16 character at currentIndex. ! * This assumes the text is stored as 16-bit code units. * @param currentIndex the currentIndex within the text. * @exception IllegalArgumentException is thrown if an invalid currentIndex is * supplied. i.e. currentIndex is out of bounds. */ public void setIndex(int currentIndex) { if (currentIndex < 0 || currentIndex > replaceable.length()) { throw new IllegalArgumentException(); }
< prev index next >