@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));
}
}
}
}
PersistableBundle.java 文件源码
java
阅读 39
收藏 0
点赞 0
评论 0
项目:JobSchedulerCompat
作者:
评论列表
文章目录