PersistableBundle.java 文件源码

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

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


问题


面经


文章

微信
公众号

扫码关注公众号