@Test public void testSerialization() throws IOException, ClassNotFoundException { List<String> u1 = new java.util.ArrayList<String>(); u1.add("URL A1"); u1.add("URL A2"); u1.add("URL A3"); List<String> u2 = new java.util.ArrayList<String>(); u2.add("URL B1"); u2.add("URL B2"); u2.add("URL B3"); CustomXYURLGenerator g1 = new CustomXYURLGenerator(); g1.addURLSeries(u1); g1.addURLSeries(u2); ByteArrayOutputStream buffer = new ByteArrayOutputStream(); ObjectOutput out = new ObjectOutputStream(buffer); out.writeObject(g1); out.close(); ObjectInput in = new ObjectInputStream( new ByteArrayInputStream(buffer.toByteArray())); CustomXYURLGenerator g2 = (CustomXYURLGenerator) in.readObject(); in.close(); assertEquals(g1, g2); }
public void addURLSeries(List<String> urls) { List<String> listToAdd = null; if (urls != null) { listToAdd = new java.util.ArrayList<String>(urls); } this.urlSeries.add(listToAdd); }
CustomXYURLGenerator implements XYURLGenerator, Cloneable,
        PublicCloneable, Serializable { public void addURLSeries(List<String> urls) { List<String> listToAdd = null; if (urls != null) { listToAdd = new java.util.ArrayList<String>(urls); } this.urlSeries.add(listToAdd); } }
CustomXYURLGenerator implements XYURLGenerator, Cloneable,
        PublicCloneable, Serializable { public void addURLSeries(List<String> urls) { List<String> listToAdd = null; if (urls != null) { listToAdd = new java.util.ArrayList<String>(urls); } this.urlSeries.add(listToAdd); } CustomXYURLGenerator(); }
CustomXYURLGenerator implements XYURLGenerator, Cloneable,
        PublicCloneable, Serializable { public void addURLSeries(List<String> urls) { List<String> listToAdd = null; if (urls != null) { listToAdd = new java.util.ArrayList<String>(urls); } this.urlSeries.add(listToAdd); } CustomXYURLGenerator(); int getListCount(); int getURLCount(int list); String getURL(int series, int item); @Override String generateURL(XYDataset dataset, int series, int item); void addURLSeries(List<String> urls); @Override boolean equals(Object obj); @Override Object clone(); }
CustomXYURLGenerator implements XYURLGenerator, Cloneable,
        PublicCloneable, Serializable { public void addURLSeries(List<String> urls) { List<String> listToAdd = null; if (urls != null) { listToAdd = new java.util.ArrayList<String>(urls); } this.urlSeries.add(listToAdd); } CustomXYURLGenerator(); int getListCount(); int getURLCount(int list); String getURL(int series, int item); @Override String generateURL(XYDataset dataset, int series, int item); void addURLSeries(List<String> urls); @Override boolean equals(Object obj); @Override Object clone();  }