diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java index a0b6d0ed2..aa4bf99f3 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java @@ -135,6 +135,11 @@ public class ObjectIdSubclassMap implements Iterable { return size; } + /** @return true if {@link #size()} is 0. */ + public boolean isEmpty() { + return size == 0; + } + public Iterator iterator() { return new Iterator() { private int found;