Home | History | Annotate | Download | only in collect

Lines Matching defs:function

32 import com.google.common.base.Function;
509 * Returns a list that applies {@code function} to each element of {@code
519 * <p>The function is applied lazily, invoked when needed. This is necessary
520 * for the returned list to be a view, but it means that the function will be
522 * {@link List#hashCode}. For this to perform well, {@code function} should be
528 * function are.
534 * {@code fromList}, its contents, and {@code function} -- <i>not</i> by
542 List<F> fromList, Function<? super F, ? extends T> function) {
544 ? new TransformingRandomAccessList<F, T>(fromList, function)
545 : new TransformingSequentialList<F, T>(fromList, function);
556 final Function<? super F, ? extends T> function;
559 List<F> fromList, Function<? super F, ? extends T> function) {
561 this.function = checkNotNull(function);
578 return function.apply(from);
597 final Function<? super F, ? extends T> function;
600 List<F> fromList, Function<? super F, ? extends T> function) {
602 this.function = checkNotNull(function);
608 return function.apply(fromList.get(index));
617 return function.apply(from);
625 return function.apply(fromList.remove(index));