java.util.function.Function .
The Functions class provides common functions and related utilities.
As this interface extends java.util.function.Function, an instance of this type can be
used as a java.util.function.Function directly. To use a java.util.function.Function in a context where a com.google.common.base.Function is
needed, use function::apply.
This interface is now a legacy type. Use java.util.function.Function (or the
appropriate primitive specialization such as ToIntFunction) instead whenever possible.
Otherwise, at least reduce explicit dependencies on this type by using lambda expressions
or method references instead of classes, leaving your code easier to migrate in the future.
See the Guava User Guide article on the use of Function.
| Modifier and Type | Method and Description |
|---|---|
| public T | apply(F
the function argument input)Redeclares java. |
| public boolean |
| apply | back to summary |
|---|---|
| public T apply(F input) Redeclares java. Doc from java. Applies this function to the given argument.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) May return Warning: do not depend on the behavior of this method. Historically,
| |