public void setMiscellaneous(String property, double value) { for (int i = 0; i < miscellaneous.size(); i++) { MiscellaneousVO vo = (MiscellaneousVO) miscellaneous.get(i); if (vo.getProperty().equals(property)) { vo.setValue(value); } } }
public double getMiscellaneous(String property) { for (int i = 0; i < miscellaneous.size(); i++) { MiscellaneousVO vo = (MiscellaneousVO) miscellaneous.get(i); if (vo.getProperty().equals(property)) { return vo.getValue(); } } return 0; }