@Test public void testContains() { Series s1 = new SimpleXYSeries("s1"); Series s2 = new SimpleXYSeries("s1"); Series s3 = new SimpleXYSeries("s1"); seriesRegistry.add(s1, new LineAndPointFormatter()); seriesRegistry.add(s2, new LineAndPointFormatter()); assertTrue(seriesRegistry.contains(s1, LineAndPointFormatter.class)); assertFalse(seriesRegistry.contains(s1, BarFormatter.class)); assertTrue(seriesRegistry.contains(s2, LineAndPointFormatter.class)); assertFalse(seriesRegistry.contains(s3, LineAndPointFormatter.class)); }
public boolean contains(SeriesType series, Class<? extends FormatterType> formatterClass) { for(BundleType b : registry) { if(b.getFormatter().getClass() == formatterClass && b.getSeries() == series) { return true; } } return false; }
SeriesRegistry implements Serializable { public boolean contains(SeriesType series, Class<? extends FormatterType> formatterClass) { for(BundleType b : registry) { if(b.getFormatter().getClass() == formatterClass && b.getSeries() == series) { return true; } } return false; } }
SeriesRegistry implements Serializable { public boolean contains(SeriesType series, Class<? extends FormatterType> formatterClass) { for(BundleType b : registry) { if(b.getFormatter().getClass() == formatterClass && b.getSeries() == series) { return true; } } return false; }  }
SeriesRegistry implements Serializable { public boolean contains(SeriesType series, Class<? extends FormatterType> formatterClass) { for(BundleType b : registry) { if(b.getFormatter().getClass() == formatterClass && b.getSeries() == series) { return true; } } return false; }  List<BundleType> getSeriesAndFormatterList(); List<SeriesType> getSeriesList(); int size(); boolean isEmpty(); boolean add(SeriesType series, FormatterType formatter); synchronized List<BundleType> remove(SeriesType series, Class rendererClass); synchronized boolean remove(SeriesType series); void clear(); List<SeriesBundle<SeriesType, FormatterType>> getLegendEnabledItems(); boolean contains(SeriesType series, Class<? extends FormatterType> formatterClass); }
SeriesRegistry implements Serializable { public boolean contains(SeriesType series, Class<? extends FormatterType> formatterClass) { for(BundleType b : registry) { if(b.getFormatter().getClass() == formatterClass && b.getSeries() == series) { return true; } } return false; }  List<BundleType> getSeriesAndFormatterList(); List<SeriesType> getSeriesList(); int size(); boolean isEmpty(); boolean add(SeriesType series, FormatterType formatter); synchronized List<BundleType> remove(SeriesType series, Class rendererClass); synchronized boolean remove(SeriesType series); void clear(); List<SeriesBundle<SeriesType, FormatterType>> getLegendEnabledItems(); boolean contains(SeriesType series, Class<? extends FormatterType> formatterClass);  }