tmf: Update copyright headers in tmf.core
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / trace / TmfTimestampLocation.java
index 4e9370ccc9d2e06af2cc9128f0ef5180ba7e8649..5228452989558ebfd7aa8dc76734cd4ab79d253f 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2012 Ericsson
+ * Copyright (c) 2012, 2013 Ericsson
  *
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
 
 package org.eclipse.linuxtools.tmf.core.trace;
 
-import org.eclipse.linuxtools.tmf.core.event.ITmfTimestamp;
+import org.eclipse.linuxtools.tmf.core.timestamp.ITmfTimestamp;
 
 /**
- * <b><u>TmfTimestampLocation</u></b>
- * <p>
- * Implement me. Please.
- * <p>
+ * A concrete implementation of TmfLocation based on ITmfTimestamp:s
+ *
+ * @author Francois Chouinard
  * @since 2.0
  */
-public class TmfTimestampLocation extends TmfLocation {
+public final class TmfTimestampLocation extends TmfLocation {
 
     /**
-     * @param location the location
+     * The normal constructor
+     *
+     * @param locationInfo the concrete location
      */
-    public TmfTimestampLocation(ITmfTimestamp location) {
-        super(location);
+    public TmfTimestampLocation(final ITmfTimestamp locationInfo) {
+        super(locationInfo);
     }
 
     /**
+     * The copy constructor
+     *
      * @param other the other location
      */
-    public TmfTimestampLocation(TmfTimestampLocation other) {
+    public TmfTimestampLocation(final TmfTimestampLocation other) {
         super(other.getLocationInfo());
     }
 
+    /* (non-Javadoc)
+     * @see org.eclipse.linuxtools.tmf.core.trace.ITmfLocation#getLocationInfo()
+     */
     @Override
-    public TmfTimestampLocation clone() {
-        return new TmfTimestampLocation((ITmfTimestamp) getLocationInfo());
+    public ITmfTimestamp getLocationInfo() {
+        return (ITmfTimestamp) super.getLocationInfo();
     }
+
 }
This page took 0.024476 seconds and 5 git commands to generate.