Update StoreTreeNode methods
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / OrderedNodeContainer.java
index 5d37b7dffaf9ed3cca89dd1e1fa4391b61a65371..4516d77c7234d421179e2aea4d10175705f4cd71 100644 (file)
@@ -7,28 +7,28 @@
  */
 package org.opendaylight.yangtools.yang.data.api.schema;
 
+import java.util.Collection;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
 
 /**
- *
  * Normalized Node container which preserves user supplied ordering
- * and allows addressing of child elements by positiion.
+ * and allows addressing of child elements by position.
  *
- * @param <V>
+ * @param <V> child type
  */
-public interface OrderedNodeContainer<V extends NormalizedNode<?, ?>> extends MixinNode, NormalizedNode<NodeIdentifier, Iterable<V>> {
-
+public interface OrderedNodeContainer<V extends NormalizedNode<?, ?>> extends MixinNode,
+       NormalizedNode<NodeIdentifier, Collection<V>> {
     /**
-     * Returns child node by position
+     * Returns child node by position.
      *
      * @param position Position of child node
      * @return Child Node
-     * @throws IndexOutOfBoundsException
+     * @throws IndexOutOfBoundsException Out of bound Exception
      */
     V getChild(int position);
 
     /**
-     * Returns count of child nodes
+     * Returns count of child nodes.
      *
      * @return count of child nodes.
      */