Make sure NormalizedNodeContainer uses Collection
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / NormalizedNodeContainer.java
index b3d2bdb1af17381eb1f85f137eef46529dc45687..52e5937b9065155537eb9195e2b74fb006b303c9 100644 (file)
@@ -6,21 +6,21 @@
  */
 package org.opendaylight.yangtools.yang.data.api.schema;
 
-import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier.PathArgument;
-
 import com.google.common.base.Optional;
+import java.util.Collection;
+import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
 
 /**
  * Node which is not leaf, but has child {@link NormalizedNode}s as its valzue.
- * 
- * 
+ *
+ *
  * NormalizedNodeContainer does not have a value, but it has a child
  * nodes. Definition of possible and valid child nodes is introduced
  * in subclasses of this interface.
- * 
+ *
  * This interface should not be used directly, but rather use of of derived subinterfaces
  * such as {@link DataContainerNode}, {@link MapNode}, {@link LeafSetNode}.
- * 
+ *
  * @param <I>
  *            Node Identifier type
  * @param <K>
@@ -29,21 +29,21 @@ import com.google.common.base.Optional;
  *            Child Node type
  */
 public interface NormalizedNodeContainer<I extends PathArgument, K extends PathArgument, V extends NormalizedNode<? extends K, ?>>
-        extends NormalizedNode<I, Iterable<V>> {
+        extends NormalizedNode<I, Collection<V>> {
 
     @Override
     I getIdentifier();
 
     /**
      * Returns immutable iteration of child nodes of this node.
-     * 
+     *
      */
     @Override
-    Iterable<V> getValue();
+    Collection<V> getValue();
 
     /**
      * Returns child node identified by provided key.
-     * 
+     *
      * @param child
      *            Path argument identifying child node
      * @return Optional with child node if child exists.