コード例 #1
0
 /**
  * Create copy of this iterator, all status including current position is kept.
  *
  * @return copy of this iterator
  */
 @Override
 public Object clone() {
   try {
     BreakIterator cloned = (BreakIterator) super.clone();
     cloned.wrapped = (com.ibm.icu4jni.text.BreakIterator) wrapped.clone();
     return cloned;
   } catch (CloneNotSupportedException e) {
     throw new InternalError(e.getMessage());
   }
 }
コード例 #2
0
ファイル: BreakIterator.java プロジェクト: jshjs11/xi
 /**
  * Creates a copy of this iterator, all status information including the current position are kept
  * the same.
  *
  * @return a copy of this iterator.
  */
 @Override
 public Object clone() {
   try {
     BreakIterator cloned = (BreakIterator) super.clone();
     cloned.wrapped = (NativeBreakIterator) wrapped.clone();
     return cloned;
   } catch (CloneNotSupportedException e) {
     throw new AssertionError(e); // android-changed
   }
 }