Interface ContradictionDetector.ConflictChecker

Enclosing class:
ContradictionDetector
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ContradictionDetector.ConflictChecker
Strategy for checking whether two facts conflict with each other.
  • Method Summary

    Modifier and Type
    Method
    Description
    checkConflict(String existingFact, String incomingFact)
    Checks if two fact strings contradict each other.
  • Method Details

    • checkConflict

      Optional<String> checkConflict(String existingFact, String incomingFact)
      Checks if two fact strings contradict each other.
      Parameters:
      existingFact - the already-stored fact
      incomingFact - the new fact being added
      Returns:
      explanation of the conflict, or empty if no conflict