Class CommentContextTO

java.lang.Object
de.hsh.graja.regression.recorded.CommentContextTO
All Implemented Interfaces:
Serializable

public final class CommentContextTO extends Object implements Serializable
See Also:
  • Constructor Details

  • Method Details

    • isEmpty

      public boolean isEmpty()
    • getLocatedAs

      public CommentLocation getLocatedAs()
    • setLocatedAs

      public void setLocatedAs(CommentLocation locatedAs)
    • getRootComment

      public ContentRepresentationTO getRootComment()
    • setRootComment

      public void setRootComment(ContentRepresentationTO rootComment)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • setLevenshteinDistanceThreshold

      public void setLevenshteinDistanceThreshold(Integer levenshteinDistance)
    • createPruned

      public CommentContextTO createPruned()
      Returns:
      a clone, where all empty children have been pruned. The result is somehow a normalized version of the original, which is better suited for equality and structural checks.