Promote ImmutableNodes to yang-data-spi
[yangtools.git] / data / yang-data-spi / src / main / java / org / opendaylight / yangtools / yang / data / spi / node / LazyValues.java
similarity index 93%
rename from data/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/nodes/LazyValues.java
rename to data/yang-data-spi/src/main/java/org/opendaylight/yangtools/yang/data/spi/node/LazyValues.java
index 0f77a5c815679d12b37bdbf54aafbeae6fe95725..12bd56e64c5165c32964942cbe4132eabc5a917c 100644 (file)
@@ -5,7 +5,7 @@
  * 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.impl.schema.nodes;
+package org.opendaylight.yangtools.yang.data.spi.node;
 
 import static java.util.Objects.requireNonNull;
 
@@ -18,7 +18,7 @@ import org.opendaylight.yangtools.yang.data.api.schema.DataContainerChild;
 
 // This is *almost* the same as Guava's TransformedCollection. The main difference is delegation of hashCode()/equals()
 // towards the backing map. This is needed because we do not retain a reference to this object and thus
-// NormalizedNode.getValue() does not compare as equal. When invoked twice and lazy leaves are in effect. Note that
+// NormalizedNode.body() does not compare as equal. When invoked twice and lazy leaves are in effect. Note that
 // Collection.equals() is undefined, but the expectation from users is that we will return the same view object, which
 // equals on identity.
 public final class LazyValues extends AbstractCollection<DataContainerChild> {