Revert "BUG-7262: Operational data tree should enforce mandatory nodes"
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / tree / DataTreeCandidate.java
index bc9fb3398f1e84d67e55ae69858a42724d51e637..063302c3c6ad1770aba2ad249b3b2f0a54bbdffe 100644 (file)
@@ -7,7 +7,7 @@
  */
 package org.opendaylight.yangtools.yang.data.api.schema.tree;
 
-import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
+import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 
 /**
  * An encapsulation of a validated data tree modification. This candidate
@@ -31,5 +31,22 @@ public interface DataTreeCandidate {
      *
      * @return Relative path of the root node
      */
-    InstanceIdentifier getRootPath();
+    YangInstanceIdentifier getRootPath();
+
+    /**
+     * {@inheritDoc}
+     *
+     * {@link DataTreeCandidate} implementations must not override the default identity hashCode method.
+     */
+    @Override
+    int hashCode();
+
+    /**
+     * {@inheritDoc}
+     *
+     * {@link DataTreeCandidate} implementations must not override the default identity hashCode method, meaning their
+     * equals implementation must result in identity comparison.
+     */
+    @Override
+    boolean equals(Object obj);
 }