1: public Object clone()
2: {
3: AList<T> theCopy = null;
4:
5: try
6: {
7: @SuppressWarnings("unchecked")
8: AList<T> temp = (AList<T>)super.clone();
9: theCopy = temp;
10: }
11: catch (CloneNotSupportedException e)
12: {
13: throw new Error(e.toString());
14: }
15:
16: /* < For a deep copy, we need to do more here, as you will see >
17: . . . */
18:
19: return theCopy;
20: } // end clone
21: // Version 4.0