Home | History | Annotate | Download | only in collect

Lines Matching defs:function

31 import com.google.common.base.Function;
475 * Returns a list that applies {@code function} to each element of {@code
485 * <p>The function is applied lazily, invoked when needed. This is necessary
486 * for the returned list to be a view, but it means that the function will be
488 * {@link List#hashCode}. For this to perform well, {@code function} should be
494 * function are.
500 * {@code fromList}, its contents, and {@code function} -- <i>not</i> by
508 List<F> fromList, Function<? super F, ? extends T> function) {
510 ? new TransformingRandomAccessList<F, T>(fromList, function)
511 : new TransformingSequentialList<F, T>(fromList, function);
522 final Function<? super F, ? extends T> function;
525 List<F> fromList, Function<? super F, ? extends T> function) {
527 this.function = checkNotNull(function);
544 return function.apply(from);
563 final Function<? super F, ? extends T> function;
566 List<F> fromList, Function<? super F, ? extends T> function) {
568 this.function = checkNotNull(function);
574 return function.apply(fromList.get(index));
583 return function.apply(from);
591 return function.apply(fromList.remove(index));