private void createLitterTypeList(List<LitterType> litterTypeEntities) { if (litterTypeEntities != null && litterTypeEntities.size() > 0) { for (LitterType litterTypeEntity : litterTypeEntities) { LocalEntity litterType = new LocalEntity(litterTypeEntity.getName()); if (litterTypeEntity.getSearchTerms() != null) { litterType.setSearchTerms((ArrayList<String>) litterTypeEntity.getSearchTerms()); } mLitterTypes.add(litterType); Log.d(TAG, litterType.getName()); } } }
private void createBinTypeList(List<BinType> binTypeEntities) { if (binTypeEntities != null && binTypeEntities.size() > 0) { for (BinType binTypeEntity : binTypeEntities) { LocalEntity binType = new LocalEntity(binTypeEntity.getName()); if (binTypeEntity.getSearchTerms() != null) { binType.setSearchTerms((ArrayList<String>) binTypeEntity.getSearchTerms()); } mBinTypes.add(binType); Log.d(TAG, binType.getName()); } } }
private void createBrandList(List<Brand> brandEntities) { if (brandEntities != null && brandEntities.size() > 0) { for (Brand brandEntity : brandEntities) { LocalEntity brand = new LocalEntity(brandEntity.getName()); if (brandEntity.getSearchTerms() != null) { brand.setSearchTerms((ArrayList<String>) brandEntity.getSearchTerms()); } mBrands.add(brand); Log.d(TAG, brand.getName()); } } }