PersistableBundle.java 文件源码

java
阅读 39 收藏 0 点赞 0 评论 0

项目:JobSchedulerCompat 作者:
@RestrictTo(RestrictTo.Scope.LIBRARY)
@SuppressWarnings("unchecked")
public PersistableBundle(Map<String, ?> map, int depth) {
    if (depth <= 0) {
        this.map = new HashMap<>(0);
    } else {
        this.map = new HashMap<>(map);
        for (String key : this.map.keySet()) {
            Object object = this.map.get(key);
            if (object instanceof Map) {
                this.map.put(key, new PersistableBundle((Map<String, Object>) object, depth - 1));
            }
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号