()
| 333 | } |
| 334 | |
| 335 | public Entry<K, V> next() { |
| 336 | if (hasNext()) { |
| 337 | if (currentCell != null) { |
| 338 | if (currentCell.next() != null) { |
| 339 | previousCell = currentCell; |
| 340 | } else { |
| 341 | previousCell = null; |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | currentCell = nextCell; |
| 346 | currentIndex = nextIndex; |
| 347 | |
| 348 | nextCell = nextCell.next(); |
| 349 | |
| 350 | return currentCell; |
| 351 | } else { |
| 352 | throw new NoSuchElementException(); |
| 353 | } |
| 354 | } |
| 355 | |
| 356 | public boolean hasNext() { |
| 357 | if (array != null) { |