MCPcopy Create free account
hub / github.com/Anchals24/Low-Level-Design / next

Method next

IteratorDesignPattern/BookIterator.java:19–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 }
18
19 @Override
20 public Object next() {
21 if (this.hasNext()){
22 return books.get(index++);
23 }
24 return null;
25 }
26}

Callers

nothing calls this directly

Calls 1

hasNextMethod · 0.95

Tested by

no test coverage detected