Merge "ObjectIdSubclassMap: Add isEmpty() method"

This commit is contained in:
Matthias Sohn 2010-04-17 18:29:16 -04:00 committed by Code Review
commit f1be93eb87
1 changed files with 5 additions and 0 deletions

View File

@ -135,6 +135,11 @@ public int size() {
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;