Fix some null warnings
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / component / ITmfEventProvider.java
index 6f9c68b5956944968917782cfe3df428eadd2343..e9db23b1a6d5e501b933635456ae4db352a1fdc4 100644 (file)
@@ -49,6 +49,14 @@ public interface ITmfEventProvider extends ITmfComponent {
      */
     void notifyPendingRequest(boolean isIncrement);
 
+    /**
+     * Get the event type this provider handles
+     *
+     * @return The type of ITmfEvent
+     * @since 2.0
+     */
+    Class<? extends ITmfEvent> getEventType();
+
     /**
      * Return the next event based on the context supplied. The context
      * will be updated for the subsequent read.
@@ -121,7 +129,7 @@ public interface ITmfEventProvider extends ITmfComponent {
      *         an empty list if no children (return value cannot be null).
      */
     @NonNull
-    <T extends ITmfEventProvider> List<T> getChildren(Class<T> clazz);
+    <T extends ITmfEventProvider> List<@NonNull T> getChildren(Class<T> clazz);
 
     /**
      * Gets the number of children
This page took 0.035506 seconds and 5 git commands to generate.