public static class

CountingMemoryCache.Entry

extends Object
java.lang.Object
   ↳ com.facebook.imagepipeline.cache.CountingMemoryCache.Entry<K, V>

Class Overview

The internal representation of a key-value pair stored by the cache.

Summary

Fields
public int clientCount
public boolean isOrphan
public final K key
public final EntryStateObserver<K> observer
public final CloseableReference<V> valueRef
Public Methods
static <K, V> Entry<K, V> of(K key, CloseableReference<V> valueRef, EntryStateObserver<K> observer)
Creates a new entry with the usage count of 0.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public int clientCount

public boolean isOrphan

public final K key

public final EntryStateObserver<K> observer

public final CloseableReference<V> valueRef

Public Methods

public static Entry<K, V> of (K key, CloseableReference<V> valueRef, EntryStateObserver<K> observer)

Creates a new entry with the usage count of 0.