@return the next element in the iteration. @exception NoSuchElementException if iteration has no more elements. @exception ConcurrentModificationException if the BinaryTree is mod
()
| 1775 | */ |
| 1776 | |
| 1777 | public Object next() |
| 1778 | throws NoSuchElementException, ConcurrentModificationException |
| 1779 | { |
| 1780 | if (_next_node == null) |
| 1781 | { |
| 1782 | throw new NoSuchElementException(); |
| 1783 | } |
| 1784 | if (_modifications != _expected_modifications) |
| 1785 | { |
| 1786 | throw new ConcurrentModificationException(); |
| 1787 | } |
| 1788 | _last_returned_node = _next_node; |
| 1789 | _next_node = nextGreater(_next_node, _type); |
| 1790 | return doGetNext(); |
| 1791 | } |
| 1792 | |
| 1793 | /** |
| 1794 | * Removes from the underlying collection the last element |
nothing calls this directly
no test coverage detected