Browse Source

Merge "ObjectIdSubclassMap: Add isEmpty() method"

stable-0.8
Matthias Sohn 15 years ago committed by Code Review
parent
commit
f1be93eb87
  1. 5
      org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java

5
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;

Loading…
Cancel
Save