tmf/lttng: Remove unneeded (non-Javadoc) comments
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / internal / tmf / core / trace / TmfExperimentLocation.java
index 970b97da908829558d0bdfe48d20978ed9594911..5c7b5b3fe9a3c9077915263e6edb5b166d213f81 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2009, 2010, 2012 Ericsson
+ * Copyright (c) 2009, 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
@@ -9,12 +9,14 @@
  * Contributors:
  * Francois Chouinard - Initial API and implementation
  * Francois Chouinard - Updated as per TMF Trace Model 1.0
+ * Patrick Tasse - Updated for ranks in experiment location
  *******************************************************************************/
 
 package org.eclipse.linuxtools.internal.tmf.core.trace;
 
 import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation;
 
+
 /**
  * The experiment location in TMF.
  * <p>
@@ -30,9 +32,9 @@ import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation;
  *
  * @see TmfLocationArray
  */
-public class TmfExperimentLocation implements ITmfLocation<TmfLocationArray> {
+public final class TmfExperimentLocation implements ITmfLocation {
 
-    TmfLocationArray fLocation;
+    private final TmfLocationArray fLocation;
 
     // ------------------------------------------------------------------------
     // Constructors
@@ -53,54 +55,27 @@ public class TmfExperimentLocation implements ITmfLocation<TmfLocationArray> {
      * @param location the other experiment location
      */
     public TmfExperimentLocation(TmfExperimentLocation location) {
-        this(location.getLocationData());
-    }
-
-    // ------------------------------------------------------------------------
-    // Cloneable
-    // ------------------------------------------------------------------------
-
-    /* (non-Javadoc)
-     * @see org.eclipse.linuxtools.tmf.core.trace.TmfLocation#clone()
-     */
-    @Override
-    public TmfExperimentLocation clone() {
-//        super.clone(); // To keep FindBugs happy
-        TmfLocationArray array = getLocationData();
-        TmfLocationArray clones = array.clone();
-        return new TmfExperimentLocation(clones);
+        this(location.getLocationInfo());
     }
 
     // ------------------------------------------------------------------------
     // Object
     // ------------------------------------------------------------------------
 
-    /* (non-Javadoc)
-     * @see org.eclipse.linuxtools.tmf.core.trace.TmfLocation#toString()
-     */
     @Override
     @SuppressWarnings("nls")
     public String toString() {
-        StringBuilder result = new StringBuilder("[TmfExperimentLocation");
-        ITmfLocation<? extends Comparable<?>>[] locations = getLocationData().getLocations();
-        for (ITmfLocation<?> location : locations) {
-            result.append("[" + location + "]");
-        }
+        StringBuilder result = new StringBuilder("TmfExperimentLocation [");
+        result.append(fLocation.toString());
         result.append("]");
         return result.toString();
     }
 
-    /* (non-Javadoc)
-     * @see org.eclipse.linuxtools.tmf.core.trace.TmfLocation#hashCode()
-     */
     @Override
     public int hashCode() {
         return super.hashCode();
     }
 
-    /* (non-Javadoc)
-     * @see org.eclipse.linuxtools.tmf.core.trace.TmfLocation#equals(java.lang.Object)
-     */
     @Override
     public boolean equals(Object obj) {
         if (this == obj) {
@@ -115,11 +90,8 @@ public class TmfExperimentLocation implements ITmfLocation<TmfLocationArray> {
         return true;
     }
 
-    /* (non-Javadoc)
-     * @see org.eclipse.linuxtools.tmf.core.trace.ITmfLocation#getLocationData()
-     */
     @Override
-    public TmfLocationArray getLocationData() {
+    public TmfLocationArray getLocationInfo() {
         return fLocation;
     }
 
This page took 0.025175 seconds and 5 git commands to generate.