Returns the index in iterable of the first element that satisfies the provided predicate, or -1 if the Iterable has no such elements. More formally, returns the lowest index i such that predicate.apply(Iterables.get(iterable, i)) returns true, or {
(Iterable<T> iterable, Predicate<? super T> predicate)
| 721 | |
| 722 | |
| 723 | public static <T> int indexOf(Iterable<T> iterable, Predicate<? super T> predicate) { |
| 724 | return Iterators.indexOf(iterable.iterator(), predicate); |
| 725 | } |
| 726 | |
| 727 | /** |
| 728 | * Returns a view containing the result of applying {@code function} to each |