2010-09-17 Francois Chouinard <fchouinard@gmail.com> Contribution for Bug325662
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf / src / org / eclipse / linuxtools / tmf / event / TmfEvent.java
index ac2fafa5483c94ea6eb1a5d45ba53879c235a8b7..78f682ebf518efcb6c89c6545ddcd91e2e71c931 100644 (file)
@@ -29,7 +29,7 @@ package org.eclipse.linuxtools.tmf.event;
  * Notice that for performance reasons TmfEvent is NOT immutable. If a copy
  * of the event is needed, use the copy constructor.
  */
-public class TmfEvent extends TmfData {
+public class TmfEvent extends TmfData implements Cloneable {
 
     // ------------------------------------------------------------------------
     // Constants
@@ -190,4 +190,9 @@ public class TmfEvent extends TmfData {
                return "[TmfEvent(" + fEffectiveTimestamp + "," + fSource + "," + fType + "," + fContent + ")]";
        }
 
+       @Override
+       public TmfEvent clone() {
+               return new TmfEvent(this);
+       }
+
 }
This page took 0.024678 seconds and 5 git commands to generate.