/** * Tests this formatter 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 NumberTickUnit)) { return false; } if (!super.equals(obj)) { return false; } NumberTickUnit that = (NumberTickUnit) obj; if (!this.formatter.equals(that.formatter)) { return false; } return true; }
/** * Tests this formatter 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 NumberTickUnit)) { return false; } if (!super.equals(obj)) { return false; } NumberTickUnit that = (NumberTickUnit) obj; if (!this.formatter.equals(that.formatter)) { return false; } return true; }
/** * Tests this unit for equality with another object. * * @param obj the object ({@code null} permitted). * * @return {@code true} or {@code false}. */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof DateTickUnit)) { return false; } if (!super.equals(obj)) { return false; } DateTickUnit that = (DateTickUnit) obj; if (!(this.unitType.equals(that.unitType))) { return false; } if (this.count != that.count) { return false; } if (!ObjectUtils.equal(this.formatter, that.formatter)) { return false; } return true; }
/** * Tests this unit for equality with another object. * * @param obj the object (<code>null</code> permitted). * * @return <code>true</code> or <code>false</code>. */ public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof DateTickUnit)) { return false; } if (!super.equals(obj)) { return false; } DateTickUnit that = (DateTickUnit) obj; if (!(this.unitType.equals(that.unitType))) { return false; } if (this.count != that.count) { return false; } if (!ObjectUtilities.equal(this.formatter, that.formatter)) { return false; } return true; }
@Override public TickUnit getLargerTickUnit(TickUnit unit) { TickUnit t = getCeilingTickUnit(unit); if (t.equals(unit)) { next(); t = new NumberTickUnit(getTickSize(), getTickLabelFormat(), getMinorTickCount()); } return t; }
prevCandidate = candidate; candidate = tickUnits.getLargerTickUnit(prevCandidate); if (candidate.equals(prevCandidate)) { found = true; // there are no more candidates
prevCandidate = candidate; candidate = tickUnits.getLargerTickUnit(prevCandidate); if (candidate.equals(prevCandidate)) { found = true; // there are no more candidates
return false; if (!this.angleTickUnit.equals(that.angleTickUnit)) { return false;
return false; if (!this.angleTickUnit.equals(that.angleTickUnit)) { return false;