| 程序包 | 说明 |
|---|---|
| cn.trinea.android.common.entity | |
| cn.trinea.android.common.service | |
| cn.trinea.android.common.service.impl |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
CacheObject.compareTo(CacheObject<V> o)
compare with data
|
| 限定符和类型 | 方法和说明 |
|---|---|
CacheObject<V> |
Cache.get(K key)
get object
|
CacheObject<V> |
Cache.put(K key,
CacheObject<V> value)
put object
|
CacheObject<V> |
Cache.put(K key,
V value)
put object
|
CacheObject<V> |
Cache.remove(K key)
remove object
|
| 限定符和类型 | 方法和说明 |
|---|---|
Set<Map.Entry<K,CacheObject<V>>> |
Cache.entrySet()
key value set
|
Collection<CacheObject<V>> |
Cache.values()
value set
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
CacheFullRemoveType.compare(CacheObject<V> obj1,
CacheObject<V> obj2)
compare object
About result if obj1 > obj2, return 1 if obj1 = obj2, return 0 if obj1 < obj2, return -1 |
int |
CacheFullRemoveType.compare(CacheObject<V> obj1,
CacheObject<V> obj2)
compare object
About result if obj1 > obj2, return 1 if obj1 = obj2, return 0 if obj1 < obj2, return -1 |
CacheObject<V> |
Cache.put(K key,
CacheObject<V> value)
put object
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected Map<K,CacheObject<V>> |
SimpleCache.cache
map to storage element
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected CacheObject<String> |
ImageSDCardCache.fullRemoveOne()
delete file when full remove one
|
protected CacheObject<V> |
SimpleCache.fullRemoveOne()
remove a element when cache is full. according to
SimpleCache.getCacheFullRemoveType()
if SimpleCache.getCacheFullRemoveType() is instance of RemoveTypeNotRemove return null, else
remove a element according to SimpleCache.getCacheFullRemoveType()
|
CacheObject<V> |
SimpleCache.get(K key)
get element
|
CacheObject<V> |
PreloadDataCache.get(K key)
get data synchronous
if key is null, return null, else
if key is already in cache, return the element that mapping with the specified key, else
call
PreloadDataCache.OnGetDataListener.onGetData(Object) to get data and wait for it finish
|
CacheObject<V> |
PreloadDataCache.get(K key,
List<K> keyList)
get data synchronous and preload new data asynchronous according to keyList
|
CacheObject<V> |
PreloadDataCache.OnGetDataListener.onGetData(K key)
get data
|
CacheObject<V> |
SimpleCache.put(K key,
CacheObject<V> value)
put element, key and value both not allowed to be null
|
CacheObject<V> |
SimpleCache.put(K key,
V value)
put element, key not allowed to be null
|
CacheObject<V> |
SimpleCache.remove(K key)
remove the specified key from cache, key not allowed to be null
|
CacheObject<String> |
ImageSDCardCache.remove(String key)
delete file when remove
|
| 限定符和类型 | 方法和说明 |
|---|---|
Set<Map.Entry<K,CacheObject<V>>> |
SimpleCache.entrySet() |
Collection<CacheObject<V>> |
SimpleCache.values() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
RemoveTypeBitmapLarge.compare(CacheObject<android.graphics.Bitmap> obj1,
CacheObject<android.graphics.Bitmap> obj2) |
int |
RemoveTypeBitmapLarge.compare(CacheObject<android.graphics.Bitmap> obj1,
CacheObject<android.graphics.Bitmap> obj2) |
int |
RemoveTypeBitmapSmall.compare(CacheObject<android.graphics.Bitmap> obj1,
CacheObject<android.graphics.Bitmap> obj2) |
int |
RemoveTypeBitmapSmall.compare(CacheObject<android.graphics.Bitmap> obj1,
CacheObject<android.graphics.Bitmap> obj2) |
int |
RemoveTypeFileSmall.compare(CacheObject<String> obj1,
CacheObject<String> obj2) |
int |
RemoveTypeFileSmall.compare(CacheObject<String> obj1,
CacheObject<String> obj2) |
int |
RemoveTypeFileLarge.compare(CacheObject<String> obj1,
CacheObject<String> obj2) |
int |
RemoveTypeFileLarge.compare(CacheObject<String> obj1,
CacheObject<String> obj2) |
int |
RemoveTypeDataSmall.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypeDataSmall.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypePriorityHigh.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypePriorityHigh.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypeUsedCountSmall.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypeUsedCountSmall.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypeLastUsedTimeFirst.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypeLastUsedTimeFirst.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypeDataBig.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypeDataBig.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypeUsedCountBig.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypeUsedCountBig.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypeLastUsedTimeLast.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypeLastUsedTimeLast.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypeEnterTimeLast.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypeEnterTimeLast.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypeNotRemove.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypeNotRemove.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypeEnterTimeFirst.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypeEnterTimeFirst.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypePriorityLow.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
int |
RemoveTypePriorityLow.compare(CacheObject<T> obj1,
CacheObject<T> obj2) |
protected boolean |
SimpleCache.isExpired(CacheObject<V> obj)
returns whether the element of the specified key has invalided
if
SimpleCache.getValidTime() less than 0, return false, else
if element is null, return true, else
if isExpired() is true and isForever() is false, return true, else
if getEnterTime() add SimpleCache.getValidTime() less than current time, return true
return false
|
CacheObject<V> |
SimpleCache.put(K key,
CacheObject<V> value)
put element, key and value both not allowed to be null
|
protected void |
SimpleCache.setUsedInfo(CacheObject<V> obj)
set used info
|
Copyright © 2012-2014. All Rights Reserved.