@Nullable
  public CloseableReference<CloseableImage> getCachedImage(@Nullable CacheKey cacheKey) {
    MemoryCache<CacheKey, CloseableImage> memoryCache = mBitmapMemoryCache;
    if (memoryCache == null || cacheKey == null) {
      return null;
    }
    CloseableReference<CloseableImage> closeableImage = memoryCache.get(cacheKey);
    if (closeableImage != null && !closeableImage.get().getQualityInfo().isOfFullQuality()) {
      closeableImage.close();
      return null;
    }
    return closeableImage;
  }
@ Nullable public CloseableReference < CloseableImage > getCachedImage ( @ Nullable CacheKey cacheKey ) { MemoryCache < CacheKey , CloseableImage > memoryCache = mBitmapMemoryCache ; if ( memoryCache == null || cacheKey == null ) { return null ; } CloseableReference < CloseableImage > closeableImage = memoryCache . get ( cacheKey ) ; if ( closeableImage != null && ! closeableImage . get ( ) . getQualityInfo ( ) . isOfFullQuality ( ) ) { closeableImage . close ( ) ; return null ; } return closeableImage ; }
Returns a reference to the cached image

@param cacheKey
@return a closeable reference or null if image was not present in cache