Populate data/ hierarchy
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / OrderedNodeContainer.java
diff --git a/yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/OrderedNodeContainer.java b/yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/OrderedNodeContainer.java
deleted file mode 100644 (file)
index a066b7c..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * 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 org.eclipse.jdt.annotation.NonNull;
-import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
-
-/**
- * A {@link NormalizedNodeContainer} which preserves user supplied ordering and allows addressing of child elements by
- * position. All implementations of this interface must also implement {@link OrderingAware.User}.
- *
- * @param <V> child type
- */
-// FIXME: 8.0.0: we really want to do a List<@NonNull V> body(), but need to reconcile that with key-based lookup in
-//               implementations -- and those are using only a Map internally.
-public interface OrderedNodeContainer<V extends NormalizedNode>
-        extends NormalizedNodeContainer<V>, MixinNode, OrderingAware.User {
-    @Override
-    NodeIdentifier getIdentifier();
-
-    /**
-     * Returns child node by position.
-     *
-     * @param position Position of child node
-     * @return Child Node
-     * @throws IndexOutOfBoundsException Out of bound Exception
-     */
-    @NonNull V childAt(int position);
-
-    @Override
-    int hashCode();
-
-    @Override
-    boolean equals(Object obj);
-}