Interface DataTreeCandidate

All Known Subinterfaces:
DataTreeCandidateTip

@NonNullByDefault public interface DataTreeCandidate
An encapsulation of a validated data tree modification. This candidate is ready for atomic commit to the datastore. It allows access to before- and after-state as it will be seen in to subsequent commit. This capture can be accessed for reference, but cannot be modified and the content is limited to nodes which were affected by the modification from which this instance originated.
  • Method Details

    • getRootNode

      DataTreeCandidateNode getRootNode()
      Get the candidate tree root node.
      Returns:
      Candidate tree root node
    • getRootPath

      YangInstanceIdentifier getRootPath()
      Get the candidate tree root path. This is the path of the root node relative to the root of InstanceIdentifier namespace.
      Returns:
      Relative path of the root node
    • hashCode

      int hashCode()
      DataTreeCandidate implementations must not override the default identity hashCode method.
      Overrides:
      hashCode in class Object
    • equals

      boolean equals(@Nullable Object obj)
      DataTreeCandidate implementations must not override the default identity hashCode method, meaning their equals implementation must result in identity comparison.
      Overrides:
      equals in class Object