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 TypeMethodDescriptionboolean
DataTreeTip
implementations must not override the default identity hashCode method, meaning their equals implementation must result in identity comparison.int
hashCode()
DataTreeTip
implementations must not override the default identity hashCode method.prepare
(DataTreeModification modification) Prepare a modification for commit.void
validate
(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()DataTreeTip
implementations must not override the default identity hashCode method. -
equals
DataTreeTip
implementations must not override the default identity hashCode method, meaning their equals implementation must result in identity comparison.
-