Compares the specified object with this region for equality. Returns
true
if the given object is also
an
AbstractTraceRegion and the two regions represent the same data. More formally, two regions
r1
and
r2
are considered to be equal if
(r1.getMyOffset() == r2.getMyOffset())
&& (r1.getMyLength() == r2.getMyLength())
&& (r1.getAssociatedOffset() == r2.getAssociatedOffset())
&& (r1.getAssociatedLength() == r2.getAssociatedLength())
&& (r1.getParent()==null ?
r2.getParent()==null : r1.getParent().equals(r2.getParent()))
This ensures that the
#equals(Object) method works properly across different implementations of the
AbstractTraceRegion interface.