Propagate @NonNull collection annotations
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / AugmentationTarget.java
index 107a5db65b83b85642d833e6ea07ca0f4898cebb..22276991f7c8a2627b487b71304ae1e5f07e7f74 100644 (file)
@@ -7,7 +7,8 @@
  */
 package org.opendaylight.yangtools.yang.model.api;
 
-import java.util.Set;
+import java.util.Collection;
+import org.eclipse.jdt.annotation.NonNull;
 
 /**
  * Interface for all nodes which are possible targets of augmentation. The
@@ -15,10 +16,10 @@ import java.util.Set;
  * input, output, or notification node.
  */
 public interface AugmentationTarget {
-
     /**
+     * Returns augmentations targeting this element.
+     *
      * @return set of augmentations targeting this element.
      */
-    Set<AugmentationSchema> getAvailableAugmentations();
-
+    @NonNull Collection<? extends @NonNull AugmentationSchemaNode> getAvailableAugmentations();
 }