Home | History | Annotate | Download | only in collect

Lines Matching defs:from

40  * chained fashion. A {@code FluentIterable} can be created from an {@code Iterable}, or from a set
58 * .from(database.getClientList())
74 // checks on the _original_ iterable when FluentIterable.from is used.
90 public static <E> FluentIterable<E> from(final Iterable<E> iterable) {
101 * Construct a fluent iterable from another fluent iterable. This is obviously never necessary,
102 * but is intended to help call out cases where one migration from {@code Iterable} to
109 public static <E> FluentIterable<E> from(FluentIterable<E> iterable) {
120 return from(Lists.newArrayList(elements));
162 return from(Iterables.cycle(iterable));
177 return from(Iterables.concat(iterable, other));
189 return from(Iterables.concat(iterable, Arrays.asList(elements)));
193 * Returns the elements from this fluent iterable that satisfy a predicate. The
198 return from(Iterables.filter(iterable, predicate));
236 return from(Iterables.transform(iterable, function));
252 return from(Iterables.concat(transform(function)));
329 return from(Iterables.skip(iterable, numberToSkip));
344 return from(Iterables.limit(iterable, size));
355 * Returns an {@code ImmutableList} containing all of the elements from this fluent iterable in
365 * Returns an {@code ImmutableList} containing all of the elements from this {@code
374 return Ordering.from(comparator).immutableSortedCopy(iterable);
378 * Returns an {@code ImmutableSet} containing all of the elements from this fluent iterable with
388 * Returns an {@code ImmutableSortedSet} containing all of the elements from this {@code
454 * Copies all the elements from this fluent iterable to {@code collection}. This is equivalent to
503 return FluentIterable.from(fromObject);