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

Method cycle

corpus/java/training/guava/collect/FluentIterable.java:351–353  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

349 * {@code Stream.generate(iterable::stream).flatMap(s -> s)}.
350 */
351 public final FluentIterable<E> cycle() {
352 return from(Iterables.cycle(iterable));
353 }
354
355 /**
356 * Returns a fluent iterable whose iterators traverse first the elements of this fluent iterable,

Callers

nothing calls this directly

Calls 2

fromMethod · 0.95
cycleMethod · 0.95

Tested by

no test coverage detected