Class ConsistencyResult
java.lang.Object
org.variantsync.diffdetective.variation.diff.ConsistencyResult
Result value for checking the consistency of a VariationDiff (e.g., if it s acyclic).
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConsistencyResult
Failure
(AssertionError reason) Create a result that indicates failure with provided reason.getError()
Returns null iff this result is a success.boolean
Returns true iff this result is a failure.boolean
Returns true iff this result is a success.static ConsistencyResult
Success()
Create a result that signals success (i.e, the checked VariationDiff is consistent).
-
Field Details
-
error
-
-
Constructor Details
-
ConsistencyResult
-
-
Method Details
-
Success
Create a result that signals success (i.e, the checked VariationDiff is consistent). -
Failure
Create a result that indicates failure with provided reason.- Parameters:
reason
- Error explaining why the VariationDiff is inconsistent.
-
isSuccess
public boolean isSuccess()Returns true iff this result is a success. -
isFailure
public boolean isFailure()Returns true iff this result is a failure. -
getError
Returns null iff this result is a success. Returns an error message if this result is a failure.
-