2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.yang.data.api.schema;
11 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates;
14 * {@link MapNode} which additionally preserves user-supplied ordering. This node represents a data instance of
15 * a {@code list} with {@code ordered-by user;} substatement and a {@code key} definition.
17 public non-sealed interface UserMapNode extends MapNode, OrderedNodeContainer<MapEntryNode> {
19 default Class<UserMapNode> contract() {
20 return UserMapNode.class;
27 * The implementation is required to define a user-visible iteration order, which must match {@link #childAt(int)}.
30 Map<NodeIdentifierWithPredicates, MapEntryNode> asMap();