public class ComponentsPools extends Object
Modifier and Type | Method and Description |
---|---|
static <E> ArrayDeque<E> |
acquireArrayDeque() |
static <E> ArraySet<E> |
acquireArraySet() |
static BorderColorDrawable |
acquireBorderColorDrawable() |
static <T> Diff |
acquireDiff(T previous,
T next) |
static com.facebook.litho.DisplayListDrawable |
acquireDisplayListDrawable(Drawable content,
com.facebook.litho.DisplayListContainer displayListContainer) |
static ArrayList<LithoView> |
acquireLithoViewArrayList() |
static LogEvent |
acquireLogEvent(int eventId) |
static RenderState |
acquireRenderState() |
static TreeProps |
acquireTreeProps() |
static void |
clearInternalUtilPools()
Clear pools for all the internal util objects, excluding mount content.
|
static void |
clearMountContentPools()
Call from tests to clear external references.
|
static void |
release(Diff diff) |
static void |
release(TreeProps treeProps) |
public static <T> Diff acquireDiff(T previous, T next)
public static TreeProps acquireTreeProps()
public static LogEvent acquireLogEvent(int eventId)
public static void release(TreeProps treeProps)
public static void release(Diff diff)
public static void clearMountContentPools()
public static void clearInternalUtilPools()
public static com.facebook.litho.DisplayListDrawable acquireDisplayListDrawable(Drawable content, com.facebook.litho.DisplayListContainer displayListContainer)
public static BorderColorDrawable acquireBorderColorDrawable()
public static <E> ArraySet<E> acquireArraySet()
public static <E> ArrayDeque<E> acquireArrayDeque()
public static RenderState acquireRenderState()