org.opendaylight.mdsal.dom.spi.query.LazyDOMQueryResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mdsal-dom-spi Show documentation
Show all versions of mdsal-dom-spi Show documentation
MD-SAL DOM service provider interfaces
The newest version!
/*
* Copyright (c) 2020 PANTHEON.tech, s.r.o. 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.mdsal.dom.spi.query;
import static java.util.Objects.requireNonNull;
import java.util.Iterator;
import java.util.Map.Entry;
import org.eclipse.jdt.annotation.NonNullByDefault;
import org.opendaylight.mdsal.dom.api.query.DOMQuery;
import org.opendaylight.mdsal.dom.api.query.DOMQueryResult;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
@NonNullByDefault
final class LazyDOMQueryResult implements DOMQueryResult {
private final NormalizedNode queryRoot;
private final DOMQuery query;
LazyDOMQueryResult(final DOMQuery query, final NormalizedNode queryRoot) {
this.query = requireNonNull(query);
this.queryRoot = requireNonNull(queryRoot);
}
@Override
public Iterator> iterator() {
return new DOMQueryIterator(query, queryRoot);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy