@Test public void testGetElement() { System.out.println("getElement"); long value = 100L; GraphRowOverallAverages instance = new GraphRowOverallAverages(); AbstractGraphPanelChartElement expResult = new GraphPanelChartAverageElement(10); instance.add(value, 10); AbstractGraphPanelChartElement result = instance.getElement(value); Assert.assertTrue(instance.getElement(value).getValue() == expResult.getValue()); }
@Override public AbstractGraphPanelChartElement getElement(long value) { if (getKey() == value) { return element; } else { return null; } }
GraphRowOverallAverages extends AbstractGraphRow implements Iterator<Entry<Long, AbstractGraphPanelChartElement>>,
        Entry<Long, AbstractGraphPanelChartElement> { @Override public AbstractGraphPanelChartElement getElement(long value) { if (getKey() == value) { return element; } else { return null; } } }
GraphRowOverallAverages extends AbstractGraphRow implements Iterator<Entry<Long, AbstractGraphPanelChartElement>>,
        Entry<Long, AbstractGraphPanelChartElement> { @Override public AbstractGraphPanelChartElement getElement(long value) { if (getKey() == value) { return element; } else { return null; } } GraphRowOverallAverages(); }
GraphRowOverallAverages extends AbstractGraphRow implements Iterator<Entry<Long, AbstractGraphPanelChartElement>>,
        Entry<Long, AbstractGraphPanelChartElement> { @Override public AbstractGraphPanelChartElement getElement(long value) { if (getKey() == value) { return element; } else { return null; } } GraphRowOverallAverages(); @Override void add(long xVal, double yVal); Iterator<Entry<Long, AbstractGraphPanelChartElement>> iterator(); boolean hasNext(); Entry<Long, AbstractGraphPanelChartElement> next(); void remove(); Long getKey(); GraphPanelChartAverageElement getValue(); AbstractGraphPanelChartElement setValue(AbstractGraphPanelChartElement value); @Override int size(); @Override AbstractGraphPanelChartElement getElement(long value); }
GraphRowOverallAverages extends AbstractGraphRow implements Iterator<Entry<Long, AbstractGraphPanelChartElement>>,
        Entry<Long, AbstractGraphPanelChartElement> { @Override public AbstractGraphPanelChartElement getElement(long value) { if (getKey() == value) { return element; } else { return null; } } GraphRowOverallAverages(); @Override void add(long xVal, double yVal); Iterator<Entry<Long, AbstractGraphPanelChartElement>> iterator(); boolean hasNext(); Entry<Long, AbstractGraphPanelChartElement> next(); void remove(); Long getKey(); GraphPanelChartAverageElement getValue(); AbstractGraphPanelChartElement setValue(AbstractGraphPanelChartElement value); @Override int size(); @Override AbstractGraphPanelChartElement getElement(long value);  }