Browse Source

Merge "ObjectIdSubclassMap: Add isEmpty() method"

tags/v0.8.1
Matthias Sohn 14 years ago
parent
commit
f1be93eb87

+ 5
- 0
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java View File

@@ -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