/**
* Returns whether they key matches at the specified depth.
*/
@SuppressWarnings("RedundantIfStatement")
@RestrictTo(RestrictTo.Scope.LIBRARY)
public boolean matches(String key, int depth) {
if (isContainer(key)) {
// This is an artificial layer we programatically create.
return true;
}
if (depth >= keys.size()) {
return false;
}
if (keys.get(depth).equals(key) ||
keys.get(depth).equals("**") ||
keys.get(depth).equals("*")) {
return true;
}
return false;
}
KeyPath.java 文件源码
java
阅读 40
收藏 0
点赞 0
评论 0
项目:lottie-android
作者:
评论列表
文章目录