Esempio n. 1
0
 /**
  * Returns a new {@code AttributedIterator} with the same source string,
  * begin, end, and current index as this attributed iterator.
  *
  * @return a shallow copy of this attributed iterator.
  * @see java.lang.Cloneable
  */
 public System.Object clone()
 {
     try {
         AttributedIterator clone = (AttributedIterator)MemberwiseClone();
         if (attributesAllowed != null)
         {
             clone.attributesAllowed = (java.util.HashSet <AttributedCharacterIteratorNS.Attribute>)attributesAllowed.clone();
         }
         return(clone);
     } catch (java.lang.CloneNotSupportedException) {
         return(null);
     }
 }