statesystem : Add a default compareTo() for segments
authorJean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tue, 1 Mar 2016 17:46:20 +0000 (12:46 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Thu, 3 Mar 2016 16:31:45 +0000 (11:31 -0500)
commitf1c52947bc91053684993c98e10672c1b4549531
tree78a869a0f1b09fca7fc49362c48bebeb18d13a12
parent87dd36aa26d4e1a98a626a38b733db149a6d1b9b
statesystem : Add a default compareTo() for segments

Implements a default compareTo() in ISegment. The comparison will be
based on the start and the end of the segment. Subclasses could extend
this default behaviour if needed.
Also, the interface become Comparable<@NonNull ISegment>.

Change-Id: Ib58e0ba80c0151d127254c8b87eafec57e624566
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/67620
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
analysis/org.eclipse.tracecompass.analysis.os.linux.core/src/org/eclipse/tracecompass/analysis/os/linux/core/latency/SystemCall.java
statesystem/org.eclipse.tracecompass.segmentstore.core/src/org/eclipse/tracecompass/segmentstore/core/BasicSegment.java
statesystem/org.eclipse.tracecompass.segmentstore.core/src/org/eclipse/tracecompass/segmentstore/core/ISegment.java
tmf/org.eclipse.tracecompass.tmf.analysis.xml.core/src/org/eclipse/tracecompass/tmf/analysis/xml/core/segment/TmfXmlPatternSegment.java
This page took 0.027255 seconds and 5 git commands to generate.