浏览代码

Merge "ObjectIdSubclassMap: Add isEmpty() method"

tags/v0.8.1
Matthias Sohn 14 年前
父节点
当前提交
f1be93eb87
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java

+ 5
- 0
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java 查看文件

@@ -135,6 +135,11 @@ public class ObjectIdSubclassMap<V extends ObjectId> implements Iterable<V> {
return size;
}

/** @return true if {@link #size()} is 0. */
public boolean isEmpty() {
return size == 0;
}

public Iterator<V> iterator() {
return new Iterator<V>() {
private int found;

正在加载...
取消
保存