MCPcopy Index your code
hub / github.com/antlr/codebuff / computeNext

Method computeNext

output/java_guava/1.4.17/TreeBasedTable.java:346–360  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

344 C lastValue;
345
346 @Override
347 protected C computeNext() {
348 while (merged.hasNext()) {
349 C next = merged.next();
350 boolean duplicate = lastValue != null && comparator.compare(next, lastValue) == 0;
351
352 // Keep looping till we find a non-duplicate value.
353 if (!duplicate) {
354 lastValue = next;
355 return lastValue;
356 }
357 }
358 lastValue = null; // clear reference to unused data
359 return endOfData();
360 }
361 };
362 }
363

Callers

nothing calls this directly

Calls 4

nextMethod · 0.65
hasNextMethod · 0.45
compareMethod · 0.45
endOfDataMethod · 0.45

Tested by

no test coverage detected