Propagate @NonNull collection annotations
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / OperationDefinition.java
index 4f285d85fe5c7e41d2f2ba5fdfe6110882a29a48..1494337cbeacc1442b4d754d989d3d957b1e1463 100644 (file)
@@ -5,11 +5,11 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.yangtools.yang.model.api;
 
 import com.google.common.annotations.Beta;
-import java.util.Set;
+import java.util.Collection;
+import org.eclipse.jdt.annotation.NonNull;
 
 /**
  * Common interface for an operation.
@@ -21,14 +21,14 @@ public interface OperationDefinition extends SchemaNode {
      *
      * @return Set of type definitions declared under this operation.
      */
-    Set<TypeDefinition<?>> getTypeDefinitions();
+    Collection<? extends @NonNull TypeDefinition<?>> getTypeDefinitions();
 
     /**
      * Returns the set of grouping statements declared under this operation.
      *
      * @return Set of grouping statements declared under this operation.
      */
-    Set<GroupingDefinition> getGroupings();
+    Collection<? extends @NonNull GroupingDefinition> getGroupings();
 
     /**
      * Returns definition of input parameters for this operation.
@@ -36,7 +36,7 @@ public interface OperationDefinition extends SchemaNode {
      * @return Definition of input parameters for this operation.
      *         The substatements of input define nodes under the operation's input node.
      */
-    ContainerSchemaNode getInput();
+    InputSchemaNode getInput();
 
     /**
      * Returns definition of output parameters for this operation.
@@ -44,5 +44,5 @@ public interface OperationDefinition extends SchemaNode {
      * @return Definition of output parameters for this operation. The
      *         substatements of output define nodes under the operation's output node.
      */
-    ContainerSchemaNode getOutput();
+    OutputSchemaNode getOutput();
 }