Interface IElementComparator

All Known Implementing Classes:
BaseElementComparator, ValueFactElementComparator, ViolationFactElementComparator

public interface IElementComparator
Author:
POLARION SOFTWARE
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    compareContent(IBaseElement baseElement1, IBaseElement baseElement2)
    compareInstance compare if the elements points to same entity (for removed/added comparison) compareContent is called when compareInstance returns true to test if the elements content is the same or if the element is changed
    boolean
    compareInstance compare if the elements points to same entity (for removed/added comparison) compareContent is called when compareInstance returns true to test if the elements content is the same or if the element is changed
    int
    hash code for element to be consistent with compareInstance
  • Method Details

    • hashCode

      int hashCode(IBaseElement element)
      hash code for element to be consistent with compareInstance
    • compareInstance

      boolean compareInstance(IBaseElement element1, IBaseElement element2)
      compareInstance compare if the elements points to same entity (for removed/added comparison) compareContent is called when compareInstance returns true to test if the elements content is the same or if the element is changed
    • compareContent

      boolean compareContent(IBaseElement baseElement1, IBaseElement baseElement2)
      compareInstance compare if the elements points to same entity (for removed/added comparison) compareContent is called when compareInstance returns true to test if the elements content is the same or if the element is changed