import com.google.common.base.Optional;
import com.google.common.collect.Iterables;
+import java.util.Collection;
import java.util.LinkedHashMap;
-import java.util.List;
import java.util.Map;
import org.opendaylight.yangtools.concepts.Immutable;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
}
@Override
- public CollectionNodeBuilder<MapEntryNode, OrderedMapNode> withValue(final List<MapEntryNode> value) {
+ public CollectionNodeBuilder<MapEntryNode, OrderedMapNode> withValue(final Collection<MapEntryNode> value) {
// TODO replace or putAll ?
for (final MapEntryNode mapEntryNode : value) {
withChild(mapEntryNode);
@Override
public MapEntryNode getChild(final int position) {
- return Iterables.get(getValue(), position);
+ return Iterables.get(children.values(), position);
}
@Override