Returns a view containing the result of applying function to each element of fromIterable. The returned iterable's iterator supports remove() if fromIterable's iterator does. After a successful remove() call, fromIterable no longer contains the cor
(
final Iterable<F> fromIterable, final Function<? super F, ? extends T> function)
| 683 | * Collections2#transform}. |
| 684 | */ |
| 685 | public static <F, T> Iterable<T> transform( |
| 686 | final Iterable<F> fromIterable, final Function<? super F, ? extends T> function) { |
| 687 | checkNotNull(fromIterable); |
| 688 | checkNotNull(function); |
| 689 | return new FluentIterable<T>() { |
| 690 | @Override |
| 691 | public Iterator<T> iterator() { |
| 692 | return Iterators.transform(fromIterable.iterator(), function); |
| 693 | } |
| 694 | }; |
| 695 | } |
| 696 | |
| 697 | /** |
| 698 | * Returns the element at the specified position in an iterable. |
no test coverage detected