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