Exemple #1
0
 private boolean productMatchesListing(Product p, Listing l) {
   return l.getTitleKey().contains(p.getModelKey());
 }
Exemple #2
0
 private Collection<Product> productsForManufacturer(Listing listing) {
   if (!products.containsKey(listing.getManufacturerKey())) {
     return new ArrayList<Product>();
   }
   return products.get(listing.getManufacturerKey());
 }