fix build breakage due to missing isEmpty() methods

This commit is contained in:
Joel Dice
2007-11-07 09:48:09 -07:00
parent 4611c89dbe
commit fef3cddb9e
4 changed files with 24 additions and 1 deletions

View File

@ -63,6 +63,10 @@ public class TreeSet<T> implements Collection<T> {
return size;
}
public boolean isEmpty() {
return size == 0;
}
public boolean contains(T value) {
return !set.find(new Cell(value, null)).fresh();
}