Make sure NormalizedNodeContainer uses Collection
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / AugmentationNode.java
index 71fa5c705a47a6395bfdf92a0fd71d6e66cc071f..2086542bf8980db133f14798773b20a2dcd46263 100644 (file)
@@ -7,6 +7,7 @@
  */
 package org.opendaylight.yangtools.yang.data.api.schema;
 
+import java.util.Collection;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.AugmentationIdentifier;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
@@ -16,7 +17,7 @@ import org.opendaylight.yangtools.yang.model.api.AugmentationSchema;
 /**
  *
  * Data instance of <code>augment</code> assiociated with parent node.
- * 
+ *
  * Augmentation is addition of subtree defined by other external YANG Model and
  * is schema for subtree is described by instance of  {@link AugmentationSchema}
  * associated with parent node of this node.
@@ -27,22 +28,22 @@ import org.opendaylight.yangtools.yang.model.api.AugmentationSchema;
 public interface AugmentationNode extends //
     MixinNode, //
     DataContainerNode<AugmentationIdentifier>,
-    DataContainerChild<YangInstanceIdentifier.AugmentationIdentifier, Iterable<DataContainerChild<? extends PathArgument, ?>>> {
+    DataContainerChild<YangInstanceIdentifier.AugmentationIdentifier, Collection<DataContainerChild<? extends PathArgument, ?>>> {
 
     /**
      * Gets identifier of augmentation node
-     * 
-     * Returned identifier of augmentation node contains all possible 
+     *
+     * Returned identifier of augmentation node contains all possible
      * direct child QNames.
-     * 
+     *
      * This is sufficient to identify instance of augmentation,
      * since RFC6020 states that <code>augment</code> that augment
-     * statement must not add multiple nodes from same namespace 
+     * statement must not add multiple nodes from same namespace
      * / module
      * to the target node.
-     * 
+     *
      * @return Identifier which uniquelly identifies augmentation in particular subtree.
-     * 
+     *
      */
     @Override
     public AugmentationIdentifier getIdentifier();