热门标签
更多>
搜索结果
查询Tags标签: getFloorEntry,共有 2条记录-
TreeMap的getFloorEntry 方法实现
final Entry<K,V> getFloorEntry(K key) {Entry<K,V> p = root;while (p != null) {int cmp = compare(key, p.key);if (cmp > 0) {if (p.right != null)p = p.right;elsereturn p;} else if (cmp < 0) {if (p.left != null) {p = p.left;} else {Entry…
2021/8/1 23:37:29 人评论 次浏览 -
TreeMap的getFloorEntry 方法实现
final Entry<K,V> getFloorEntry(K key) {Entry<K,V> p = root;while (p != null) {int cmp = compare(key, p.key);if (cmp > 0) {if (p.right != null)p = p.right;elsereturn p;} else if (cmp < 0) {if (p.left != null) {p = p.left;} else {Entry…
2021/8/1 23:37:29 人评论 次浏览