static final class RenderThemeImpl.Pool<T extends RenderThemeImpl.Widget>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
RenderThemeImpl.Pool.Notifier<T>
An interface used to notify the implementor of removal
of a control from the pool.
|
Modifier and Type | Field and Description |
---|---|
private int |
capacity |
private java.util.LinkedHashMap<java.lang.Long,java.lang.Integer> |
ids |
private static int |
INITIAL_CAPACITY |
private RenderThemeImpl.Pool.Notifier<T> |
notifier |
private java.util.Map<java.lang.Long,java.lang.ref.WeakReference<T>> |
pool |
private java.lang.String |
type |
Constructor and Description |
---|
Pool(RenderThemeImpl.Pool.Notifier<T> notifier,
java.lang.Class<T> type) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
clear() |
(package private) T |
get(long id) |
(package private) void |
put(long id,
T control,
int updateContentCycleID) |
private static final int INITIAL_CAPACITY
private int capacity
private final java.util.LinkedHashMap<java.lang.Long,java.lang.Integer> ids
private final java.util.Map<java.lang.Long,java.lang.ref.WeakReference<T extends RenderThemeImpl.Widget>> pool
private final RenderThemeImpl.Pool.Notifier<T extends RenderThemeImpl.Widget> notifier
private final java.lang.String type
Pool(RenderThemeImpl.Pool.Notifier<T> notifier, java.lang.Class<T> type)