/** * This method creates a clone of the current object. * @return a clone of the current object */ @Override public Animation clone() { try { Animation result = (Animation) super.clone(); result.tracks = new SafeArrayList<Track>(Track.class); for (Track track : tracks) { result.tracks.add(track.clone()); } return result; } catch (CloneNotSupportedException e) { throw new AssertionError(); } }
/** * This method creates a clone of the current object. * @return a clone of the current object */ @Override public Animation clone() { try { Animation result = (Animation) super.clone(); result.tracks = new SafeArrayList<Track>(Track.class); for (Track track : tracks) { result.tracks.add(track.clone()); } return result; } catch (CloneNotSupportedException e) { throw new AssertionError(); } }
/** * This method creates a clone of the current object. * @return a clone of the current object */ @Override public Animation clone() { try { Animation result = (Animation) super.clone(); result.tracks = new SafeArrayList<Track>(Track.class); for (Track track : tracks) { result.tracks.add(track.clone()); } return result; } catch (CloneNotSupportedException e) { throw new AssertionError(); } }