analysis: Move plugins to their own sub-directory
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / request / TmfEventRequest.java
index 322bd77016be8fb394c441540ef0d03b27a00e3a..430400fb48eb38bb4a08bd6e675a11a71d6c947e 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2009, 2013 Ericsson
+ * Copyright (c) 2009, 2015 Ericsson
  *
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
@@ -60,7 +60,6 @@ import org.eclipse.tracecompass.tmf.core.timestamp.TmfTimeRange;
  * TODO: Implement request failures (codes, etc...)
  *
  * @author Francois Chouinard
- * @since 3.0
  */
 public abstract class TmfEventRequest implements ITmfEventRequest {
 
@@ -83,12 +82,10 @@ public abstract class TmfEventRequest implements ITmfEventRequest {
     /** The requested events time range */
     private final TmfTimeRange fRange;
 
-    /** The index (rank) of the requested event
-     * @since 3.0*/
+    /** The index (rank) of the requested event */
     protected long fIndex;
 
-    /** The number of requested events (ALL_DATA for all)
-     * @since 3.0*/
+    /** The number of requested events (ALL_DATA for all) */
     protected int fNbRequested;
 
     /** The number of reads so far */
@@ -186,13 +183,6 @@ public abstract class TmfEventRequest implements ITmfEventRequest {
         }
     }
 
-    /**
-     * Resets the request counter (used for testing)
-     */
-    public static synchronized void reset() {
-        fRequestNumber = 0;
-    }
-
     // ------------------------------------------------------------------------
     // Accessors
     // ------------------------------------------------------------------------
@@ -207,9 +197,6 @@ public abstract class TmfEventRequest implements ITmfEventRequest {
         return fIndex;
     }
 
-    /**
-     * @since 3.0
-     */
     @Override
     public ExecutionType getExecType() {
         return fExecType;
@@ -408,24 +395,6 @@ public abstract class TmfEventRequest implements ITmfEventRequest {
     // Object
     // ------------------------------------------------------------------------
 
-    @Override
-    // All requests have a unique id
-    public int hashCode() {
-        return getRequestId();
-    }
-
-    @Override
-    public boolean equals(Object other) {
-        if (other instanceof TmfEventRequest) {
-            TmfEventRequest request = (TmfEventRequest) other;
-            return request.fDataType == fDataType
-                    && request.fIndex == fIndex
-                    && request.fNbRequested == fNbRequested
-                    && request.fRange.equals(fRange);
-        }
-        return false;
-    }
-
     @Override
     public String toString() {
         String name = getClass().getName();
This page took 0.02692 seconds and 5 git commands to generate.