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 f4ed38a7ee0968317b60648395d644782b0602de..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) {
+    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) getLocationInfo());
+    public Long getLocationInfo() {
+        return (Long) super.getLocationInfo();
     }
+
 }
This page took 0.024116 seconds and 5 git commands to generate.