MCPcopy Create free account
hub / github.com/ReadyTalk/avian / next

Method next

classpath/java/util/HashMap.java:335–354  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 2

hasNextMethod · 0.95
nextMethod · 0.65

Tested by

no test coverage detected