Returns the upper bound on the cache size
Object object = boundedMultiLruCache.getStatByName(
Constants.STAT_BOUNDEDMULTILRUCACHE_MAX_SIZE);
/*
* BoundedMultiLruCache class returns java.lang.String with a value
* "default" if the maxSize == Constants.DEFAULT_MAX_CACHE_SIZE
* To take care of this case, the if/else is added below
*/
if (object instanceof String &&
((String) object).equals(Constants.STAT_DEFAULT)) {
return Long.valueOf(Constants.DEFAULT_MAX_CACHE_SIZE);
}
else {
return (Long) object;
}