Expose DataTreeSnapshot's SchemaContext
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / tree / StoreTreeNode.java
index e54683e95f17ede2dd21fe63a9ca6a34a67d9ace..541dc60a8b5936c75075049b3a46093c07e5ca42 100644 (file)
@@ -7,10 +7,9 @@
  */
 package org.opendaylight.yangtools.yang.data.api.schema.tree;
 
+import java.util.Optional;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
 
-import com.google.common.base.Optional;
-
 /**
  * A tree node which has references to its child leaves. This are typically
  * internal non-data leaves, such as containers, lists, etc.
@@ -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);
 }