@Test public void testIterator() { System.out.println("iterator"); GraphRowExactValues instance = new GraphRowExactValues(); instance.add(1, 1); instance.add(1, 2); instance.add(1, 3); Iterator<Entry<Long, AbstractGraphPanelChartElement>> result = instance.iterator(); assertEquals(1, ((AbstractGraphPanelChartElement) result.next().getValue()).getValue(), 0.001); assertEquals(2, ((AbstractGraphPanelChartElement) result.next().getValue()).getValue(), 0.001); assertEquals(3, ((AbstractGraphPanelChartElement) result.next().getValue()).getValue(), 0.001); }
@Override public Iterator<Entry<Long, AbstractGraphPanelChartElement>> iterator() { iterator = values.entrySet().iterator(); return this; }
GraphRowExactValues extends AbstractGraphRow implements Iterator<Entry<Long, AbstractGraphPanelChartElement>> { @Override public Iterator<Entry<Long, AbstractGraphPanelChartElement>> iterator() { iterator = values.entrySet().iterator(); return this; } }
GraphRowExactValues extends AbstractGraphRow implements Iterator<Entry<Long, AbstractGraphPanelChartElement>> { @Override public Iterator<Entry<Long, AbstractGraphPanelChartElement>> iterator() { iterator = values.entrySet().iterator(); return this; } GraphRowExactValues(); }
GraphRowExactValues extends AbstractGraphRow implements Iterator<Entry<Long, AbstractGraphPanelChartElement>> { @Override public Iterator<Entry<Long, AbstractGraphPanelChartElement>> iterator() { iterator = values.entrySet().iterator(); return this; } GraphRowExactValues(); @Override void add(long xVal, double yVal); @Override Iterator<Entry<Long, AbstractGraphPanelChartElement>> iterator(); boolean hasNext(); Entry<Long, AbstractGraphPanelChartElement> next(); void remove(); @Override int size(); @Override AbstractGraphPanelChartElement getElement(long value); }
GraphRowExactValues extends AbstractGraphRow implements Iterator<Entry<Long, AbstractGraphPanelChartElement>> { @Override public Iterator<Entry<Long, AbstractGraphPanelChartElement>> iterator() { iterator = values.entrySet().iterator(); return this; } GraphRowExactValues(); @Override void add(long xVal, double yVal); @Override Iterator<Entry<Long, AbstractGraphPanelChartElement>> iterator(); boolean hasNext(); Entry<Long, AbstractGraphPanelChartElement> next(); void remove(); @Override int size(); @Override AbstractGraphPanelChartElement getElement(long value);  }