@Shareable public class ItemListItemDAO extends Object implements ItemDAO, Serializable
| Constructor and Description |
|---|
ItemListItemDAO(Collection<Long> items) |
| Modifier and Type | Method and Description |
|---|---|
static ItemListItemDAO |
fromFile(File file)
Read an item list DAO from a file.
|
LongSet |
getItemIds()
Get all known item IDs.
|
public ItemListItemDAO(Collection<Long> items)
public LongSet getItemIds()
ItemDAOgetItemIds in interface ItemDAOpublic static ItemListItemDAO fromFile(File file) throws IOException
file - A file of item IDs, one per line.IOException - if there is an error reading the list of items.