Modifiers | Name | Description |
---|---|---|
protected interface |
PreProcessCache.BaseItem |
|
protected static class |
PreProcessCache.Item |
Items representing jar/dex files that have been processed during a build. |
protected static class |
PreProcessCache.Key |
Key to store Item/StoredItem in maps. |
protected interface |
PreProcessCache.KeyFactory |
|
protected static class |
PreProcessCache.StoredItem |
Items representing jar/dex files that have been processed in a previous build, then were stored in a cache file and then reloaded during the current build. |
Type | Name and description |
---|---|
void |
clear(File itemStorage, com.android.utils.ILogger logger) |
protected Node |
createItemNode(Document document, T itemKey, PreProcessCache.BaseItem item) |
protected com.android.utils.Pair<Item, Boolean> |
getItem(T itemKey) Returns an Item loaded from the cache. |
protected KeyFactory<T> |
getKeyFactory() |
protected void |
incrementHits() |
protected void |
incrementMisses() |
void |
load(File itemStorage) Loads the stored item. |
protected void |
saveItems(File itemStorage) |
Returns an Item loaded from the cache. If no item can be found this, throws an exception.
itemKey
- the key of the itemLoads the stored item. This can be called several times (per subproject), so only the first call should do something.