Class BaseElementComparator
java.lang.Object
com.polarion.qcentre.factbase.delta.compare.BaseElementComparator
- All Implemented Interfaces:
IElementComparator
- Direct Known Subclasses:
ValueFactElementComparator
,ViolationFactElementComparator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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 changedboolean
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 changedint
hashCode
(IBaseElement element) hash code for element to be consistent with compareInstance
-
Constructor Details
-
BaseElementComparator
public BaseElementComparator()
-
-
Method Details
-
compareContent
Description copied from interface:IElementComparator
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- Specified by:
compareContent
in interfaceIElementComparator
-
compareInstance
Description copied from interface:IElementComparator
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- Specified by:
compareInstance
in interfaceIElementComparator
-
hashCode
Description copied from interface:IElementComparator
hash code for element to be consistent with compareInstance- Specified by:
hashCode
in interfaceIElementComparator
-