Hello,I think there is a bug in IntAVLTreeSet.
Calling the function IntAVLTreeSet.iterator(), returns new SetIterator(), which is:
SetIterator() {
next = firstEntry;
}
I think you should also add: prev = lastEntry, i.e.,
SetIterator() {
next = firstEntry;
prev = lastEntry;
}
as without it, any call to hasPrevious() would fail
All the best,
Eran