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

Method cycle

guava/src/com/google/common/collect/FluentIterable.java:377–379  ·  view source on GitHub ↗

Returns a fluent iterable whose {@code Iterator} cycles indefinitely over the elements of this fluent iterable. <p>That iterator supports {@code remove()} if {@code iterable.iterator()} does. After {@code remove()} is called, subsequent cycles omit the removed element, which is no longer in this fl

()

Source from the content-addressed store, hash-verified

375 * use {@code Stream.generate(() -> collection).flatMap(Collection::stream)}.
376 */
377 public final FluentIterable<E> cycle() {
378 return from(Iterables.cycle(getDelegate()));
379 }
380
381 /**
382 * Returns a fluent iterable whose iterators traverse first the elements of this fluent iterable,

Callers

nothing calls this directly

Calls 3

fromMethod · 0.95
cycleMethod · 0.95
getDelegateMethod · 0.95

Tested by

no test coverage detected