@Override public boolean equals(Object obj){
  if (obj == this) {
    return true;
  }
  if (!super.equals(obj)) {
    return false;
  }
  if (!(obj instanceof XYDrawableAnnotation)) {
    return false;
  }
  XYDrawableAnnotation that=(XYDrawableAnnotation)obj;
  if (this.x != that.x) {
    return false;
  }
  if (this.y != that.y) {
    return false;
  }
  if (this.displayWidth != that.displayWidth) {
    return false;
  }
  if (this.displayHeight != that.displayHeight) {
    return false;
  }
  if (this.drawScaleFactor != that.drawScaleFactor) {
    return false;
  }
  if (!ObjectUtilities.equal(this.drawable,that.drawable)) {
    return false;
  }
  return true;
}

@ Override public boolean equals ( Object obj ) { if ( obj == this ) { return true ; } if ( ! super . equals ( obj ) ) { return false ; } if ( ! ( obj instanceof XYDrawableAnnotation ) ) { return false ; } XYDrawableAnnotation that = ( XYDrawableAnnotation ) obj ; if ( this . x != that . x ) { return false ; } if ( this . y != that . y ) { return false ; } if ( this . displayWidth != that . displayWidth ) { return false ; } if ( this . displayHeight != that . displayHeight ) { return false ; } if ( this . drawScaleFactor != that . drawScaleFactor ) { return false ; } if ( ! ObjectUtilities . equal ( this . drawable , that . drawable ) ) { return false ; } return true ; }
tests this annotation for equality with an arbitrary object .
