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 Summary
Modifier and TypeMethodDescriptionboolean
DataTreeCandidate
implementations must not override the default identity hashCode method, meaning their equals implementation must result in identity comparison.Get the candidate tree root node.Get the candidate tree root path.int
hashCode()
DataTreeCandidate
implementations must not override the default identity hashCode method.
-
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. -
equals
DataTreeCandidate
implementations must not override the default identity hashCode method, meaning their equals implementation must result in identity comparison.
-