/** * Tests this {@code ImageTitle} for equality with an arbitrary * object. Returns {@code true} if: * <ul> * <li>{@code obj} is an instance of {@code ImageTitle}; * <li>{@code obj} references the same image as this * {@code ImageTitle}; * <li>{@code super.equals(obj)} returns {@code true}; * </ul> * * @param obj the object ({@code null} permitted). * * @return A boolean. */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof ImageTitle)) { return false; } ImageTitle that = (ImageTitle) obj; if (!ObjectUtils.equal(this.image, that.image)) { return false; } return super.equals(obj); }
/** * Tests this <code>ImageTitle</code> for equality with an arbitrary * object. Returns <code>true</code> if: * <ul> * <li><code>obj</code> is an instance of <code>ImageTitle</code>; * <li><code>obj</code> references the same image as this * <code>ImageTitle</code>; * <li><code>super.equals(obj)<code> returns <code>true</code>; * </ul> * * @param obj the object (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof ImageTitle)) { return false; } ImageTitle that = (ImageTitle) obj; if (!ObjectUtilities.equal(this.image, that.image)) { return false; } return super.equals(obj); }
/** * Tests this title for equality with an arbitrary object. * * @param obj the object ({@code null} permitted). * * @return A boolean. */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof CompositeTitle)) { return false; } CompositeTitle that = (CompositeTitle) obj; if (!this.container.equals(that.container)) { return false; } if (!PaintUtils.equal(this.backgroundPaint, that.backgroundPaint)) { return false; } return super.equals(obj); }
return false; if (!super.equals(obj)) { return false;
/** * Tests this title for equality with an arbitrary object. * * @param obj the object (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof CompositeTitle)) { return false; } CompositeTitle that = (CompositeTitle) obj; if (!this.container.equals(that.container)) { return false; } if (!PaintUtilities.equal(this.backgroundPaint, that.backgroundPaint)) { return false; } return super.equals(obj); }
return false; if (!super.equals(obj)) { return false;
return false; return super.equals(obj);
return false; return super.equals(obj);
/** * Tests the entity for equality with an arbitrary object. * * @param obj the object to test against (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof TitleEntity)) { return false; } TitleEntity that = (TitleEntity) obj; if (!getArea().equals(that.getArea())) { return false; } if (!ObjectUtilities.equal(getToolTipText(), that.getToolTipText())) { return false; } if (!ObjectUtilities.equal(getURLText(), that.getURLText())) { return false; } if (!(this.title.equals(that.title))) { return false; } return true; }
/** * Tests the entity for equality with an arbitrary object. * * @param obj the object to test against ({@code null} permitted). * * @return A boolean. */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof TitleEntity)) { return false; } TitleEntity that = (TitleEntity) obj; if (!getArea().equals(that.getArea())) { return false; } if (!ObjectUtils.equal(getToolTipText(), that.getToolTipText())) { return false; } if (!ObjectUtils.equal(getURLText(), that.getURLText())) { return false; } if (!(this.title.equals(that.title))) { return false; } return true; }
return false; return super.equals(obj);
return false; return super.equals(obj);