tmf: fix sonar warnings about redundant modifier in interfaces
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / interval / ITmfStateInterval.java
index 397f1af3f158d1ad251043f39827d81ef35d0b00..d5be73b7f0aeeb9603a17c3a5ec0ad138d32df48 100644 (file)
@@ -1,11 +1,11 @@
 /*******************************************************************************
  * Copyright (c) 2012 Ericsson
- * 
+ *
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
  * accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  * Contributors:
  *   Alexandre Montplaisir - Initial API
  ******************************************************************************/
@@ -17,49 +17,60 @@ import org.eclipse.linuxtools.tmf.core.statevalue.ITmfStateValue;
 /**
  * This is the basic interface for accessing state intervals. See
  * StateInterval.java for a basic implementation.
- * 
+ *
  * A StateInterval is meant to be immutable. All implementing (non-abstract)
  * classes should ideally be marked as 'final'.
- * 
- * @author alexmont
- * 
+ *
+ * @version 1.0
+ * @author Alexandre Montplaisir
  */
 public interface ITmfStateInterval {
 
     /**
      * Retrieve the start time of the interval
-     * 
-     * @return
+     *
+     * @return the start time of the interval
      */
-    public long getStartTime();
+    long getStartTime();
 
     /**
      * Retrieve the end time of the interval
-     * 
-     * @return
+     *
+     * @return the end time of the interval
      */
-    public long getEndTime();
+    long getEndTime();
+
+    /**
+     * In case the "real" end time of the interval is not exactly the same as
+     * the end time you want to show in views, you can implement this method to
+     * assign a different value that the viewer can use.
+     *
+     * If not, you can simply have it return the same as getEndTime().
+     *
+     * @return The end time that views should use
+     */
+    long getViewerEndTime();
 
     /**
      * Retrieve the quark of the attribute this state interval refers to
-     * 
-     * @return
+     *
+     * @return the quark of the attribute this state interval refers to
      */
-    public int getAttribute();
+    int getAttribute();
 
     /**
      * Retrieve the state value represented by this interval
-     * 
-     * @return
+     *
+     * @return the state value represented by this interval
      */
-    public ITmfStateValue getStateValue();
+    ITmfStateValue getStateValue();
 
     /**
      * Test if this interval intersects another timestamp, inclusively.
-     * 
+     *
      * @param timestamp
      *            The target timestamp
      * @return True if the interval and timestamp intersect, false if they don't
      */
-    public boolean intersects(long timestamp);
+    boolean intersects(long timestamp);
 }
This page took 0.025267 seconds and 5 git commands to generate.