Make the TmfLocation final and get rid of clone()
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / trace / TmfLongLocation.java
index 0bf5b7369d9522b80a347a92bd68841d4c920d66..b54ec5da31d08603c9e703f493799f0f545617cd 100644 (file)
 
 package org.eclipse.linuxtools.tmf.core.trace;
 
-
 /**
- * <b><u>TmfLongLocation</u></b>
- * <p>
- * Implement me. Please.
- * <p>
+ * A concrete implementation of TmfLocation based on Long:s
+ *
+ * @author Francois Chouinard
  * @since 2.0
  */
-public class TmfLongLocation extends TmfLocation {
+public final class TmfLongLocation extends TmfLocation {
 
     /**
-     * @param location the location
+     * The normal constructor
+     *
+     * @param locationInfo the concrete location
      */
-    public TmfLongLocation(Long location) {
-        super(location);
+    public TmfLongLocation(final Long locationInfo) {
+        super(locationInfo);
     }
 
     /**
+     * The copy constructor
+     *
      * @param other the other location
      */
-    public TmfLongLocation(TmfLongLocation other) {
-        super(other.getLocationData());
+    public TmfLongLocation(final TmfLongLocation other) {
+        super(other.getLocationInfo());
     }
 
+    /* (non-Javadoc)
+     * @see org.eclipse.linuxtools.tmf.core.trace.ITmfLocation#getLocationInfo()
+     */
     @Override
-    public TmfLongLocation clone() {
-        return new TmfLongLocation((Long) getLocationData());
+    public Long getLocationInfo() {
+        return (Long) super.getLocationInfo();
     }
+
 }
This page took 0.024665 seconds and 5 git commands to generate.