Expose DataTreeSnapshot's SchemaContext
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / tree / StoreTreeNode.java
index 9d283e2e5ee9fc64a0f14b484dbe39406bb72f02..541dc60a8b5936c75075049b3a46093c07e5ca42 100644 (file)
@@ -7,9 +7,8 @@
  */
 package org.opendaylight.yangtools.yang.data.api.schema.tree;
 
-import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier.PathArgument;
-
-import com.google.common.base.Optional;
+import java.util.Optional;
+import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
 
 /**
  * A tree node which has references to its child leaves. This are typically
@@ -20,10 +19,10 @@ import com.google.common.base.Optional;
 public interface StoreTreeNode<C extends StoreTreeNode<C>> {
 
     /**
-     * Returns a direct child of the node
+     * Returns a direct child of the node.
      *
      * @param child Identifier of child
-     * @return Optional with node if the child is existing, {@link Optional#absent()} otherwise.
+     * @return Optional with node if the child is existing, {@link Optional#empty()} otherwise.
      */
     Optional<C> getChild(PathArgument child);
 }