@Test public void testIndexOf() { DefaultXYZDataset d = createSampleDataset1(); assertEquals(0, d.indexOf("S1")); assertEquals(1, d.indexOf("S2")); assertEquals(-1, d.indexOf("Green Eggs and Ham")); assertEquals(-1, d.indexOf(null)); }
@Override public int indexOf(Comparable seriesKey) { return this.seriesKeys.indexOf(seriesKey); }
DefaultXYZDataset extends AbstractXYZDataset implements XYZDataset, PublicCloneable { @Override public int indexOf(Comparable seriesKey) { return this.seriesKeys.indexOf(seriesKey); } }
DefaultXYZDataset extends AbstractXYZDataset implements XYZDataset, PublicCloneable { @Override public int indexOf(Comparable seriesKey) { return this.seriesKeys.indexOf(seriesKey); } DefaultXYZDataset(); }
DefaultXYZDataset extends AbstractXYZDataset implements XYZDataset, PublicCloneable { @Override public int indexOf(Comparable seriesKey) { return this.seriesKeys.indexOf(seriesKey); } DefaultXYZDataset(); @Override int getSeriesCount(); @Override Comparable getSeriesKey(int series); @Override int indexOf(Comparable seriesKey); @Override DomainOrder getDomainOrder(); @Override int getItemCount(int series); @Override double getXValue(int series, int item); @Override Number getX(int series, int item); @Override double getYValue(int series, int item); @Override Number getY(int series, int item); @Override double getZValue(int series, int item); @Override Number getZ(int series, int item); void addSeries(Comparable seriesKey, double[][] data); void removeSeries(Comparable seriesKey); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone(); }
DefaultXYZDataset extends AbstractXYZDataset implements XYZDataset, PublicCloneable { @Override public int indexOf(Comparable seriesKey) { return this.seriesKeys.indexOf(seriesKey); } DefaultXYZDataset(); @Override int getSeriesCount(); @Override Comparable getSeriesKey(int series); @Override int indexOf(Comparable seriesKey); @Override DomainOrder getDomainOrder(); @Override int getItemCount(int series); @Override double getXValue(int series, int item); @Override Number getX(int series, int item); @Override double getYValue(int series, int item); @Override Number getY(int series, int item); @Override double getZValue(int series, int item); @Override Number getZ(int series, int item); void addSeries(Comparable seriesKey, double[][] data); void removeSeries(Comparable seriesKey); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone();  }