Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void createBasket(String id) throws BasketExistenceException{
- if(baskets.containsKey(id))
- throw new BasketExistenceException();
- baskets.put(id, new Basket(id));
- }
- public IBasket getBasket(String id) {
- return (IBasket) baskets.get(id);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement