@Test public void testEquals() { StandardXYSeriesLabelGenerator g1 = new StandardXYSeriesLabelGenerator("Series {0}"); StandardXYSeriesLabelGenerator g2 = new StandardXYSeriesLabelGenerator("Series {0}"); assertEquals(g1, g2); assertEquals(g2, g1); g1 = new StandardXYSeriesLabelGenerator("{1}"); assertFalse(g1.equals(g2)); g2 = new StandardXYSeriesLabelGenerator("{1}"); assertEquals(g1, g2); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StandardXYSeriesLabelGenerator)) { return false; } StandardXYSeriesLabelGenerator that = (StandardXYSeriesLabelGenerator) obj; if (!this.formatPattern.equals(that.formatPattern)) { return false; } return true; }
StandardXYSeriesLabelGenerator implements XYSeriesLabelGenerator,
        Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StandardXYSeriesLabelGenerator)) { return false; } StandardXYSeriesLabelGenerator that = (StandardXYSeriesLabelGenerator) obj; if (!this.formatPattern.equals(that.formatPattern)) { return false; } return true; } }
StandardXYSeriesLabelGenerator implements XYSeriesLabelGenerator,
        Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StandardXYSeriesLabelGenerator)) { return false; } StandardXYSeriesLabelGenerator that = (StandardXYSeriesLabelGenerator) obj; if (!this.formatPattern.equals(that.formatPattern)) { return false; } return true; } StandardXYSeriesLabelGenerator();  StandardXYSeriesLabelGenerator(String format); }
StandardXYSeriesLabelGenerator implements XYSeriesLabelGenerator,
        Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StandardXYSeriesLabelGenerator)) { return false; } StandardXYSeriesLabelGenerator that = (StandardXYSeriesLabelGenerator) obj; if (!this.formatPattern.equals(that.formatPattern)) { return false; } return true; } StandardXYSeriesLabelGenerator();  StandardXYSeriesLabelGenerator(String format); @Override String generateLabel(XYDataset dataset, int series); @Override Object clone(); @Override boolean equals(Object obj); @Override int hashCode(); }
StandardXYSeriesLabelGenerator implements XYSeriesLabelGenerator,
        Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StandardXYSeriesLabelGenerator)) { return false; } StandardXYSeriesLabelGenerator that = (StandardXYSeriesLabelGenerator) obj; if (!this.formatPattern.equals(that.formatPattern)) { return false; } return true; } StandardXYSeriesLabelGenerator();  StandardXYSeriesLabelGenerator(String format); @Override String generateLabel(XYDataset dataset, int series); @Override Object clone(); @Override boolean equals(Object obj); @Override int hashCode(); static final String DEFAULT_LABEL_FORMAT; }