Source of J9.10.java


  1: // @author Frank M. Carrano, Timothy M. Henry
  2: // @version 5.0

  4: public Object clone()
  5: {
  6:    AList<T> theCopy = null;

  8:    try
  9:    {
 10:       @SuppressWarnings("unchecked")
 11:       AList<T> temp = (AList<T>)super.clone();
 12:       theCopy = temp;
 13:    }
 14:    catch (CloneNotSupportedException e)
 15:    {
 16:       throw new Error(e.toString());
 17:    }

 19: /* For a deep copy, we need to do more here, as you will see 
 20:    . . . */

 22:    return theCopy;
 23: } // end clone