Пример #1
0
  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);
      }
    }
  }
Пример #2
0
  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;
  }