public ArrayList<DispenserEnterprise> searchDispEnterprise() { dispEntList = new ArrayList<DispenserEnterprise>(); for (Enterprise e : enterpriseList) { if (e.getType().equalsIgnoreCase((Enterprise.DISPENSER))) { dispEntList.add((DispenserEnterprise) e); } } return dispEntList; }
public ArrayList<WholesalerEnterprise> searchWholeEnterprise() { wholeEntList = new ArrayList<WholesalerEnterprise>(); for (Enterprise e : enterpriseList) { if (e.getType().equalsIgnoreCase((Enterprise.WHOLESALER))) { wholeEntList.add((WholesalerEnterprise) e); } } return wholeEntList; }
public ArrayList<ManufacturerEnterprise> searchManuEnterprise() { manuEntList = new ArrayList<ManufacturerEnterprise>(); for (Enterprise e : enterpriseList) { if (e.getType().equalsIgnoreCase((Enterprise.MANUFACTURER))) { manuEntList.add((ManufacturerEnterprise) e); } } return manuEntList; }