()
| 157 | } |
| 158 | |
| 159 | @Override |
| 160 | public void remove() |
| 161 | { |
| 162 | if(!canRemove) |
| 163 | throw new IllegalStateException("An element can not currently be removed"); |
| 164 | else |
| 165 | { |
| 166 | canRemove = false; |
| 167 | removeHeapNode(pos+1); |
| 168 | } |
| 169 | } |
| 170 | }; |
| 171 | } |
| 172 |
no test coverage detected