[Bug292967] Second part of request coalescing + unit tests + minor fixes.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf / src / org / eclipse / linuxtools / tmf / event / TmfTimeRange.java
index 5f90f796ba50ba9aec0d319a456dcf53ae0ec8f3..9c634bae027b82594f58efceaf6268ef82c42cfc 100644 (file)
@@ -13,7 +13,7 @@
 package org.eclipse.linuxtools.tmf.event;
 
 /**
- * <b><u>TmfTimeWindow</u></b>
+ * <b><u>TmfTimeRange</u></b>
  * <p>
  * A utility class to define time ranges.
  */
@@ -63,6 +63,16 @@ public class TmfTimeRange {
                fEndTime   = other.fEndTime;
        }
 
+    @Override
+    public boolean equals(Object other) {
+       if (other instanceof TmfTimeRange) {
+               TmfTimeRange range = (TmfTimeRange) other;
+               return range.fStartTime.equals(fStartTime) &&
+                      range.fEndTime.equals(fEndTime);
+       }
+       return false;
+    }
+
     // ========================================================================
     // Accessors
     // ========================================================================
This page took 0.023673 seconds and 5 git commands to generate.