BUG-9265: Switch empty type mapping from Void to Empty
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / DataContainerNode.java
index a9e90d566e1c1245c6aa8a503ad9897d813a7587..df43be8819447361f66d9c9c50acddccf9259003 100644 (file)
@@ -1,19 +1,21 @@
 /*
  * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
+ *
  * This program and the accompanying materials are made available under the
  * 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.data.api.schema;
 
+import java.util.Collection;
+import javax.annotation.Nonnull;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
 
 /**
- *
  * Abstract node which does not have value but contains valid {@link DataContainerChild} nodes.
- *
  * Schema of this node is described by instance of {@link org.opendaylight.yangtools.yang.model.api.DataNodeContainer}.
  *
+ * <p>
  * <h2>Implementation notes</h2>
  * This interface should not be implemented directly, but rather implementing one of it's subclasses
  * <ul>
@@ -28,19 +30,17 @@ import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgum
  */
 public interface DataContainerNode<K extends PathArgument> extends //
         NormalizedNodeContainer<K, PathArgument, DataContainerChild<? extends PathArgument, ?>> {
-
     /**
-     * Returns iteration of all child nodes
-     *
+     * Returns iteration of all child nodes.
      * Order of returned child nodes may be defined by subinterfaces.
      *
-     * <b>Implementation Notes:</b>
      * <p>
+     * <b>Implementation Notes:</b>
      * All nodes returned in this iterable, MUST also be accessible via
      * {@link #getChild(PathArgument)} using their associated identifier.
      *
      * @return Iteration of all child nodes
      */
     @Override
-    Iterable<DataContainerChild<? extends PathArgument, ?>> getValue();
+    @Nonnull Collection<DataContainerChild<? extends PathArgument, ?>> getValue();
 }