MCPcopy Create free account
hub / github.com/antlr/codebuff / advance

Method advance

output/java_guava/1.4.13/LocalCache.java:4330–4348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4328 @Override
4329 public abstract T next();
4330 final void advance() {
4331 nextExternal = null;
4332 if (nextInChain()) {
4333 return;
4334 }
4335 if (nextInTable()) {
4336 return;
4337 }
4338 while (nextSegmentIndex >= 0) {
4339 currentSegment = segments[nextSegmentIndex--];
4340 if (currentSegment.count != 0) {
4341 currentTable = currentSegment.table;
4342 nextTableIndex = currentTable.length() - 1;
4343 if (nextInTable()) {
4344 return;
4345 }
4346 }
4347 }
4348 }
4349
4350 /**
4351 * Finds the next entry in the current chain. Returns true if an entry was found.

Callers 2

HashIteratorMethod · 0.95
nextEntryMethod · 0.95

Calls 3

nextInChainMethod · 0.95
nextInTableMethod · 0.95
lengthMethod · 0.45

Tested by

no test coverage detected