Class ConsistencyResult

java.lang.Object
org.variantsync.diffdetective.variation.diff.ConsistencyResult

public class ConsistencyResult extends Object
Result value for checking the consistency of a VariationDiff (e.g., if it s acyclic).
  • Field Details

  • Constructor Details

  • Method Details

    • Success

      public static ConsistencyResult Success()
      Create a result that signals success (i.e, the checked VariationDiff is consistent).
    • Failure

      public static ConsistencyResult Failure(AssertionError reason)
      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

      public AssertionError getError()
      Returns null iff this result is a success. Returns an error message if this result is a failure.