@Test public void testEquals() { TimeSeriesURLGenerator g1 = new TimeSeriesURLGenerator(); TimeSeriesURLGenerator g2 = new TimeSeriesURLGenerator(); assertEquals(g1, g2); g1 = new TimeSeriesURLGenerator(new SimpleDateFormat("yyyy"), "prefix", "series", "item"); assertFalse(g1.equals(g2)); g2 = new TimeSeriesURLGenerator(new SimpleDateFormat("yyyy"), "prefix", "series", "item"); assertEquals(g1, g2); g1 = new TimeSeriesURLGenerator(new SimpleDateFormat("yy"), "prefix", "series", "item"); assertFalse(g1.equals(g2)); g2 = new TimeSeriesURLGenerator(new SimpleDateFormat("yy"), "prefix", "series", "item"); assertEquals(g1, g2); g1 = new TimeSeriesURLGenerator(new SimpleDateFormat("yy"), "prefix1", "series", "item"); assertFalse(g1.equals(g2)); g2 = new TimeSeriesURLGenerator(new SimpleDateFormat("yy"), "prefix1", "series", "item"); assertEquals(g1, g2); g1 = new TimeSeriesURLGenerator(new SimpleDateFormat("yy"), "prefix1", "series1", "item"); assertFalse(g1.equals(g2)); g2 = new TimeSeriesURLGenerator(new SimpleDateFormat("yy"), "prefix1", "series1", "item"); assertEquals(g1, g2); g1 = new TimeSeriesURLGenerator(new SimpleDateFormat("yy"), "prefix1", "series1", "item1"); assertFalse(g1.equals(g2)); g2 = new TimeSeriesURLGenerator(new SimpleDateFormat("yy"), "prefix1", "series1", "item1"); assertEquals(g1, g2); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof TimeSeriesURLGenerator)) { return false; } TimeSeriesURLGenerator that = (TimeSeriesURLGenerator) obj; if (!this.dateFormat.equals(that.dateFormat)) { return false; } if (!this.itemParameterName.equals(that.itemParameterName)) { return false; } if (!this.prefix.equals(that.prefix)) { return false; } if (!this.seriesParameterName.equals(that.seriesParameterName)) { return false; } return true; }
TimeSeriesURLGenerator implements XYURLGenerator, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof TimeSeriesURLGenerator)) { return false; } TimeSeriesURLGenerator that = (TimeSeriesURLGenerator) obj; if (!this.dateFormat.equals(that.dateFormat)) { return false; } if (!this.itemParameterName.equals(that.itemParameterName)) { return false; } if (!this.prefix.equals(that.prefix)) { return false; } if (!this.seriesParameterName.equals(that.seriesParameterName)) { return false; } return true; } }
TimeSeriesURLGenerator implements XYURLGenerator, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof TimeSeriesURLGenerator)) { return false; } TimeSeriesURLGenerator that = (TimeSeriesURLGenerator) obj; if (!this.dateFormat.equals(that.dateFormat)) { return false; } if (!this.itemParameterName.equals(that.itemParameterName)) { return false; } if (!this.prefix.equals(that.prefix)) { return false; } if (!this.seriesParameterName.equals(that.seriesParameterName)) { return false; } return true; } TimeSeriesURLGenerator();  TimeSeriesURLGenerator(DateFormat dateFormat, String prefix,
            String seriesParameterName, String itemParameterName); }
TimeSeriesURLGenerator implements XYURLGenerator, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof TimeSeriesURLGenerator)) { return false; } TimeSeriesURLGenerator that = (TimeSeriesURLGenerator) obj; if (!this.dateFormat.equals(that.dateFormat)) { return false; } if (!this.itemParameterName.equals(that.itemParameterName)) { return false; } if (!this.prefix.equals(that.prefix)) { return false; } if (!this.seriesParameterName.equals(that.seriesParameterName)) { return false; } return true; } TimeSeriesURLGenerator();  TimeSeriesURLGenerator(DateFormat dateFormat, String prefix,
            String seriesParameterName, String itemParameterName); DateFormat getDateFormat(); String getPrefix(); String getSeriesParameterName(); String getItemParameterName(); @Override String generateURL(XYDataset dataset, int series, int item); @Override boolean equals(Object obj); }
TimeSeriesURLGenerator implements XYURLGenerator, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof TimeSeriesURLGenerator)) { return false; } TimeSeriesURLGenerator that = (TimeSeriesURLGenerator) obj; if (!this.dateFormat.equals(that.dateFormat)) { return false; } if (!this.itemParameterName.equals(that.itemParameterName)) { return false; } if (!this.prefix.equals(that.prefix)) { return false; } if (!this.seriesParameterName.equals(that.seriesParameterName)) { return false; } return true; } TimeSeriesURLGenerator();  TimeSeriesURLGenerator(DateFormat dateFormat, String prefix,
            String seriesParameterName, String itemParameterName); DateFormat getDateFormat(); String getPrefix(); String getSeriesParameterName(); String getItemParameterName(); @Override String generateURL(XYDataset dataset, int series, int item); @Override boolean equals(Object obj);  }