Interface DataTreeTip
- All Known Subinterfaces:
DataTree,DataTreeCandidateTip
- All Known Implementing Classes:
InMemoryDataTree
Tip of a data tree instance. It acts as a point to which modifications can be applied.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDataTreeTipimplementations must not override the default identity hashCode method, meaning their equals implementation must result in identity comparison.inthashCode()DataTreeTipimplementations must not override the default identity hashCode method.prepare(DataTreeModification modification) Prepare a modification for commit.voidvalidate(DataTreeModification modification) Validate whether a particular modification can be applied to the data tree.
-
Method Details
-
validate
Validate whether a particular modification can be applied to the data tree.- Parameters:
modification- Data tree modification.- Throws:
DataValidationFailedException- If modification data is not valid.NullPointerException- if modification is nullIllegalArgumentException- if modification is unrecognizedDataValidationFailedException- if modification would result in inconsistent data tree
-
prepare
DataTreeCandidateTip prepare(DataTreeModification modification) throws DataValidationFailedException Prepare a modification for commit.- Parameters:
modification- Data tree modification.- Returns:
- candidate data tree
- Throws:
NullPointerException- if modification is nullIllegalArgumentException- if modification is unrecognizedDataValidationFailedException- if modification would result in inconsistent data tree
-
hashCode
int hashCode()DataTreeTipimplementations must not override the default identity hashCode method. -
equals
DataTreeTipimplementations must not override the default identity hashCode method, meaning their equals implementation must result in identity comparison.
-