package

com.facebook.common.references

Classes we use for reference counting through the CloseableReference abstraction

Interfaces

CloseableReference.LeakHandler  
HasBitmap Marker interface for closeable references containing a bitmap  
ResourceReleaser<T> Interface that abstracts the action of releasing a resource. 

Classes

CloseableReference<T> A smart pointer-like class for Java. 
DefaultCloseableReference<T>  
FinalizerCloseableReference<T>  
NoOpCloseableReference<T>  
OOMSoftReference<T> To eliminate the possibility of some of our objects causing an OutOfMemoryError when they are not used, we reference them via SoftReferences. 
RefCountCloseableReference<T>  
SharedReference<T> A shared-reference class somewhat similar to c++ shared_ptr. 

Exceptions

SharedReference.NullReferenceException The moral equivalent of NullPointerException for SharedReference.