/** * Clones this event and sets the originalEvent field of the new event * to be equal to this event. */ public AbstractEvent cloneEvent() { try { AbstractEvent newEvent = (AbstractEvent) clone(); newEvent.originalEvent = this; return newEvent; } catch (CloneNotSupportedException e) { return null; } }
/** * Clones this event and sets the originalEvent field of the new event * to be equal to this event. */ public AbstractEvent cloneEvent() { try { AbstractEvent newEvent = (AbstractEvent) clone(); newEvent.originalEvent = this; return newEvent; } catch (CloneNotSupportedException e) { return null; } }
/** * Clones this event and sets the originalEvent field of the new event * to be equal to this event. */ public AbstractEvent cloneEvent() { try { AbstractEvent newEvent = (AbstractEvent) clone(); newEvent.originalEvent = this; return newEvent; } catch (CloneNotSupportedException e) { return null; } }