/** * check the exist of a product in this dataset collection * * @param sName _more_ * @param product _more_ * @return _more_ */ public boolean checkStationProduct(String sName, Product product) { for (Product s : radarProducts) { if (s.equals(product)) { return true; } } return false; }
/** * _more_ * * @param sName _more_ * @param product _more_ * @return _more_ */ public boolean checkStationProduct(String sName, Product product) { if (dqc.getName().contains("Level2")) { if (product.getID().equals("Reflectivity") || product.getID().equals("RadialVelocity") || product.getID().equals("SpectrumWidth")) { return true; } } return false; }