Item
- Type of object to be stored by the cache manager instance.public interface Store<Item>
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.
|
Item getStoredItem(Intent indexingIntent)
indexingIntent
- Intent to be used as the indexing signature.null
reference.void setStoredItem(Intent indexingIntent, Item itemRef)
indexingIntent
- Intent to be used as the indexing signature.itemRef
- Reference to the object to be stored.void removeStoredItem(Intent indexingIntent)
indexingIntent
- Intent to be used as the indexing signature.java.util.Collection<Item> getStoredItems(Intent.Type intentType)
intentType
- Specified indexing intent type.