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

Method from

output/java_guava/1.4.17/FluentIterable.java:132–141  ·  view source on GitHub ↗

Returns a fluent iterable that wraps iterable, or iterable itself if it is already a FluentIterable. Stream equivalent: iterable.stream() if iterable is a Collection; StreamSupport.stream(iterable.spliterator(), false) otherw

(final Iterable<E> iterable)

Source from the content-addressed store, hash-verified

130
131
132 public static <E> FluentIterable<E> from(final Iterable<E> iterable) {
133 return (iterable instanceof FluentIterable)
134 ? (FluentIterable<E>) iterable
135 : new FluentIterable<E>(iterable) {
136 @Override
137 public Iterator<E> iterator() {
138 return iterable.iterator();
139 }
140 };
141 }
142
143 /**
144 * Returns a fluent iterable containing {@code elements} in the specified order.

Callers 15

getDeclaredAnnotationMethod · 0.95
delegateMethod · 0.95
delegateMethod · 0.95
rawTypesMethod · 0.95
delegateMethod · 0.95
ofMethod · 0.95
cycleMethod · 0.95
appendMethod · 0.95
filterMethod · 0.95
transformMethod · 0.95
transformAndConcatMethod · 0.95

Calls 2

asListMethod · 0.45
checkNotNullMethod · 0.45

Tested by

no test coverage detected