@Override public boolean equals(Object obj){
  if (obj == this) {
    return true;
  }
  if (!(obj instanceof IntervalXYDelegate)) {
    return false;
  }
  IntervalXYDelegate that=(IntervalXYDelegate)obj;
  if (this.autoWidth != that.autoWidth) {
    return false;
  }
  if (this.intervalPositionFactor != that.intervalPositionFactor) {
    return false;
  }
  if (this.fixedIntervalWidth != that.fixedIntervalWidth) {
    return false;
  }
  return true;
}

@ Override public boolean equals ( Object obj ) { if ( obj == this ) { return true ; } if ( ! ( obj instanceof IntervalXYDelegate ) ) { return false ; } IntervalXYDelegate that = ( IntervalXYDelegate ) obj ; if ( this . autoWidth != that . autoWidth ) { return false ; } if ( this . intervalPositionFactor != that . intervalPositionFactor ) { return false ; } if ( this . fixedIntervalWidth != that . fixedIntervalWidth ) { return false ; } return true ; }
tests the delegate for equality with an arbitrary object . the equality test considers two delegates to be equal if they would calculate the same intervals for any given dataset ( for this reason , the dataset itself is not included in the equality test , because it is just a reference back to the current ' owner ' of the delegate ) .
