public class BasketPersistenceService extends Object
| Constructor and Description |
|---|
BasketPersistenceService() |
| Modifier and Type | Method and Description |
|---|---|
Collection<Basket> |
getAllBaskets() |
Basket |
getBasket(String id) |
static File |
getFolder(GlobalContext globalContext) |
static BasketPersistenceService |
getInstance(GlobalContext globalContext) |
void |
storeBasket(Basket basket) |
public static BasketPersistenceService getInstance(GlobalContext globalContext)
public static File getFolder(GlobalContext globalContext)
public Collection<Basket> getAllBaskets()
public void storeBasket(Basket basket) throws IOException
IOExceptionpublic Basket getBasket(String id) throws IOException
IOExceptionCopyright © 2012-2018. All Rights Reserved.