java类android.util.Pools.Pool的实例源码

SparseArrayBitmapPool.java 文件源码 项目:nexus-gallery 阅读 19 收藏 0 点赞 0 评论 0
/**
 * @param capacityBytes Maximum capacity of the pool in bytes.
 * @param nodePool Shared pool to use for recycling linked list nodes, or null.
 */
public SparseArrayBitmapPool(int capacityBytes, Pool<Node> nodePool) {
    mCapacityBytes = capacityBytes;
    if (nodePool == null) {
        mNodePool = new SimplePool<Node>(32);
    } else {
        mNodePool = nodePool;
    }
}


问题


面经


文章

微信
公众号

扫码关注公众号