import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.Collection;
+import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
return checkNotNull(Messages.SegmentAspectName_SystemCall);
}
@Override
+ public @Nullable Comparator<?> getComparator() {
+ return null;
+ }
+ @Override
public @Nullable String resolve(ISegment segment) {
if (segment instanceof SystemCall) {
return ((SystemCall) segment).getName();
package org.eclipse.tracecompass.tmf.core.segment;
+import java.util.Comparator;
+
import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.tracecompass.segmentstore.core.ISegment;
*/
String getHelpText();
+ /**
+ * Gets the comparator to be used when comparing to segments.
+ * @return the comparator to be used when comparing to segments
+ */
+ @Nullable Comparator<?> getComparator();
+
/**
* The "functor" representing this aspect. Basically, what to do for an
* segment that is passed in parameter.
* @return The resulting information for this segment.
*/
@Nullable Object resolve(ISegment segment);
+
}