@Test public void testEqualsWithLocale() { PeriodAxis a1 = new PeriodAxis("Test", new Year(2000), new Year(2009), TimeZone.getDefault(), Locale.JAPAN); PeriodAxis a2 = new PeriodAxis("Test", new Year(2000), new Year(2009), TimeZone.getDefault(), Locale.JAPAN); assertEquals(a1, a2); assertEquals(a2, a1); a1 = new PeriodAxis("Test", new Year(2000), new Year(2009), TimeZone.getDefault(), Locale.UK); assertFalse(a1.equals(a2)); a2 = new PeriodAxis("Test", new Year(2000), new Year(2009), TimeZone.getDefault(), Locale.UK); assertEquals(a1, a2); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof PeriodAxis)) { return false; } PeriodAxis that = (PeriodAxis) obj; if (!this.first.equals(that.first)) { return false; } if (!this.last.equals(that.last)) { return false; } if (!this.timeZone.equals(that.timeZone)) { return false; } if (!this.locale.equals(that.locale)) { return false; } if (!this.autoRangeTimePeriodClass.equals( that.autoRangeTimePeriodClass)) { return false; } if (!(isMinorTickMarksVisible() == that.isMinorTickMarksVisible())) { return false; } if (!this.majorTickTimePeriodClass.equals( that.majorTickTimePeriodClass)) { return false; } if (!this.minorTickTimePeriodClass.equals( that.minorTickTimePeriodClass)) { return false; } if (!this.minorTickMarkPaint.equals(that.minorTickMarkPaint)) { return false; } if (!this.minorTickMarkStroke.equals(that.minorTickMarkStroke)) { return false; } if (!Arrays.equals(this.labelInfo, that.labelInfo)) { return false; } return super.equals(obj); }
PeriodAxis extends ValueAxis implements Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof PeriodAxis)) { return false; } PeriodAxis that = (PeriodAxis) obj; if (!this.first.equals(that.first)) { return false; } if (!this.last.equals(that.last)) { return false; } if (!this.timeZone.equals(that.timeZone)) { return false; } if (!this.locale.equals(that.locale)) { return false; } if (!this.autoRangeTimePeriodClass.equals( that.autoRangeTimePeriodClass)) { return false; } if (!(isMinorTickMarksVisible() == that.isMinorTickMarksVisible())) { return false; } if (!this.majorTickTimePeriodClass.equals( that.majorTickTimePeriodClass)) { return false; } if (!this.minorTickTimePeriodClass.equals( that.minorTickTimePeriodClass)) { return false; } if (!this.minorTickMarkPaint.equals(that.minorTickMarkPaint)) { return false; } if (!this.minorTickMarkStroke.equals(that.minorTickMarkStroke)) { return false; } if (!Arrays.equals(this.labelInfo, that.labelInfo)) { return false; } return super.equals(obj); } }
PeriodAxis extends ValueAxis implements Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof PeriodAxis)) { return false; } PeriodAxis that = (PeriodAxis) obj; if (!this.first.equals(that.first)) { return false; } if (!this.last.equals(that.last)) { return false; } if (!this.timeZone.equals(that.timeZone)) { return false; } if (!this.locale.equals(that.locale)) { return false; } if (!this.autoRangeTimePeriodClass.equals( that.autoRangeTimePeriodClass)) { return false; } if (!(isMinorTickMarksVisible() == that.isMinorTickMarksVisible())) { return false; } if (!this.majorTickTimePeriodClass.equals( that.majorTickTimePeriodClass)) { return false; } if (!this.minorTickTimePeriodClass.equals( that.minorTickTimePeriodClass)) { return false; } if (!this.minorTickMarkPaint.equals(that.minorTickMarkPaint)) { return false; } if (!this.minorTickMarkStroke.equals(that.minorTickMarkStroke)) { return false; } if (!Arrays.equals(this.labelInfo, that.labelInfo)) { return false; } return super.equals(obj); } PeriodAxis(String label);  PeriodAxis(String label,
                      RegularTimePeriod first, RegularTimePeriod last);  PeriodAxis(String label, RegularTimePeriod first,
            RegularTimePeriod last, TimeZone timeZone, Locale locale); }
PeriodAxis extends ValueAxis implements Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof PeriodAxis)) { return false; } PeriodAxis that = (PeriodAxis) obj; if (!this.first.equals(that.first)) { return false; } if (!this.last.equals(that.last)) { return false; } if (!this.timeZone.equals(that.timeZone)) { return false; } if (!this.locale.equals(that.locale)) { return false; } if (!this.autoRangeTimePeriodClass.equals( that.autoRangeTimePeriodClass)) { return false; } if (!(isMinorTickMarksVisible() == that.isMinorTickMarksVisible())) { return false; } if (!this.majorTickTimePeriodClass.equals( that.majorTickTimePeriodClass)) { return false; } if (!this.minorTickTimePeriodClass.equals( that.minorTickTimePeriodClass)) { return false; } if (!this.minorTickMarkPaint.equals(that.minorTickMarkPaint)) { return false; } if (!this.minorTickMarkStroke.equals(that.minorTickMarkStroke)) { return false; } if (!Arrays.equals(this.labelInfo, that.labelInfo)) { return false; } return super.equals(obj); } PeriodAxis(String label);  PeriodAxis(String label,
                      RegularTimePeriod first, RegularTimePeriod last);  PeriodAxis(String label, RegularTimePeriod first,
            RegularTimePeriod last, TimeZone timeZone, Locale locale); RegularTimePeriod getFirst(); void setFirst(RegularTimePeriod first); RegularTimePeriod getLast(); void setLast(RegularTimePeriod last); TimeZone getTimeZone(); void setTimeZone(TimeZone zone); Locale getLocale(); Class getAutoRangeTimePeriodClass(); void setAutoRangeTimePeriodClass(Class c); Class getMajorTickTimePeriodClass(); void setMajorTickTimePeriodClass(Class c); @Override boolean isMinorTickMarksVisible(); @Override void setMinorTickMarksVisible(boolean visible); Class getMinorTickTimePeriodClass(); void setMinorTickTimePeriodClass(Class c); Stroke getMinorTickMarkStroke(); void setMinorTickMarkStroke(Stroke stroke); Paint getMinorTickMarkPaint(); void setMinorTickMarkPaint(Paint paint); @Override float getMinorTickMarkInsideLength(); @Override void setMinorTickMarkInsideLength(float length); @Override float getMinorTickMarkOutsideLength(); @Override void setMinorTickMarkOutsideLength(float length); PeriodAxisLabelInfo[] getLabelInfo(); void setLabelInfo(PeriodAxisLabelInfo[] info); @Override void setRange(Range range, boolean turnOffAutoRange,
                         boolean notify); @Override void configure(); @Override AxisSpace reserveSpace(Graphics2D g2, Plot plot,
                                  Rectangle2D plotArea, RectangleEdge edge,
                                  AxisSpace space); @Override AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea,
            Rectangle2D dataArea, RectangleEdge edge,
            PlotRenderingInfo plotState); @Override List<ValueTick> refreshTicks(Graphics2D g2, AxisState state,
            Rectangle2D dataArea, RectangleEdge edge); @Override double valueToJava2D(double value, Rectangle2D area,
            RectangleEdge edge); @Override double java2DToValue(double java2DValue, Rectangle2D area,
            RectangleEdge edge); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone(); }
PeriodAxis extends ValueAxis implements Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof PeriodAxis)) { return false; } PeriodAxis that = (PeriodAxis) obj; if (!this.first.equals(that.first)) { return false; } if (!this.last.equals(that.last)) { return false; } if (!this.timeZone.equals(that.timeZone)) { return false; } if (!this.locale.equals(that.locale)) { return false; } if (!this.autoRangeTimePeriodClass.equals( that.autoRangeTimePeriodClass)) { return false; } if (!(isMinorTickMarksVisible() == that.isMinorTickMarksVisible())) { return false; } if (!this.majorTickTimePeriodClass.equals( that.majorTickTimePeriodClass)) { return false; } if (!this.minorTickTimePeriodClass.equals( that.minorTickTimePeriodClass)) { return false; } if (!this.minorTickMarkPaint.equals(that.minorTickMarkPaint)) { return false; } if (!this.minorTickMarkStroke.equals(that.minorTickMarkStroke)) { return false; } if (!Arrays.equals(this.labelInfo, that.labelInfo)) { return false; } return super.equals(obj); } PeriodAxis(String label);  PeriodAxis(String label,
                      RegularTimePeriod first, RegularTimePeriod last);  PeriodAxis(String label, RegularTimePeriod first,
            RegularTimePeriod last, TimeZone timeZone, Locale locale); RegularTimePeriod getFirst(); void setFirst(RegularTimePeriod first); RegularTimePeriod getLast(); void setLast(RegularTimePeriod last); TimeZone getTimeZone(); void setTimeZone(TimeZone zone); Locale getLocale(); Class getAutoRangeTimePeriodClass(); void setAutoRangeTimePeriodClass(Class c); Class getMajorTickTimePeriodClass(); void setMajorTickTimePeriodClass(Class c); @Override boolean isMinorTickMarksVisible(); @Override void setMinorTickMarksVisible(boolean visible); Class getMinorTickTimePeriodClass(); void setMinorTickTimePeriodClass(Class c); Stroke getMinorTickMarkStroke(); void setMinorTickMarkStroke(Stroke stroke); Paint getMinorTickMarkPaint(); void setMinorTickMarkPaint(Paint paint); @Override float getMinorTickMarkInsideLength(); @Override void setMinorTickMarkInsideLength(float length); @Override float getMinorTickMarkOutsideLength(); @Override void setMinorTickMarkOutsideLength(float length); PeriodAxisLabelInfo[] getLabelInfo(); void setLabelInfo(PeriodAxisLabelInfo[] info); @Override void setRange(Range range, boolean turnOffAutoRange,
                         boolean notify); @Override void configure(); @Override AxisSpace reserveSpace(Graphics2D g2, Plot plot,
                                  Rectangle2D plotArea, RectangleEdge edge,
                                  AxisSpace space); @Override AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea,
            Rectangle2D dataArea, RectangleEdge edge,
            PlotRenderingInfo plotState); @Override List<ValueTick> refreshTicks(Graphics2D g2, AxisState state,
            Rectangle2D dataArea, RectangleEdge edge); @Override double valueToJava2D(double value, Rectangle2D area,
            RectangleEdge edge); @Override double java2DToValue(double java2DValue, Rectangle2D area,
            RectangleEdge edge); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone();  }