MCPcopy
hub / github.com/google/guava / computeNext

Method computeNext

guava/src/com/google/common/base/Optional.java:349–358  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

347 checkNotNull(optionals.iterator());
348
349 @Override
350 protected @Nullable T computeNext() {
351 while (iterator.hasNext()) {
352 Optional<? extends T> optional = iterator.next();
353 if (optional.isPresent()) {
354 return optional.get();
355 }
356 }
357 return endOfData();
358 }
359 };
360 }
361

Callers

nothing calls this directly

Calls 5

nextMethod · 0.65
getMethod · 0.65
hasNextMethod · 0.45
isPresentMethod · 0.45
endOfDataMethod · 0.45

Tested by

no test coverage detected