/** * Method: removeWish() * * @param Long wishId */ public void removeWish(Long wishId) { for (Long lot : wishlist) { if (lot.equals(wishId)) { wishlist.remove(lot); break; } } }
/** * Method: removeOpenLot() * * @param Long lotId */ public void removeOpenLot(Long lotId) { for (Long lot : openLots) { if (lot.equals(lotId)) { if (openLots.size() > 1) { openLots.remove(lot); } else { openLots.clear(); } break; } } }