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