* 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
return "[TmfEvent(" + fEffectiveTimestamp + "," + fSource + "," + fType + "," + fContent + ")]";
}
+ @Override
+ public TmfEvent clone() {
+ return new TmfEvent(this);
+ }
+
}