Constructor and Description |
---|
SignatureStoreFlat()
Creates a new and empty caching manager with initialized storage.
|
Modifier and Type | Method and Description |
---|---|
Item |
getStoredItem(Intent indexingIntent)
Attempts to fetch stored item for a given correction intent.
|
java.util.Collection<Item> |
getStoredItems(Intent.Type intentType)
Returns the list with all stored items of a particular type.
|
void |
removeStoredItem(Intent indexingIntent)
Removes the cached item indexed by the given correction intent.
|
void |
setStoredItem(Intent indexingIntent,
Item itemRef)
Inserts a new item into the cache using the intent signature.
|
public SignatureStoreFlat()
public Item getStoredItem(Intent indexingIntent)
Store
getStoredItem
in interface Store<Item>
indexingIntent
- Intent to be used as the indexing signature.null
reference.public void setStoredItem(Intent indexingIntent, Item itemRef)
Store
setStoredItem
in interface Store<Item>
indexingIntent
- Intent to be used as the indexing signature.itemRef
- Reference to the object to be stored.public void removeStoredItem(Intent indexingIntent)
Store
removeStoredItem
in interface Store<Item>
indexingIntent
- Intent to be used as the indexing signature.public java.util.Collection<Item> getStoredItems(Intent.Type intentType)
Store
getStoredItems
in interface Store<Item>
intentType
- Specified indexing intent type.