com.google.common.base.Function instances; see that
class for information about migrating to java.util.function.
All methods return serializable functions as long as they're given serializable parameters.
See the Guava User Guide article on the use of Function.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static enum | |
| private static class | |
| private static class | |
| private static enum |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <A extends @Nullable Object, B extends @Nullable Object, C extends @Nullable Object> Function | |
| public static <E extends @Nullable Object> Function | Returns: a function that always returnsvaluethe constant value for the function to return value)Returns a function that ignores its input and always returns |
| public static <K extends @Nullable Object, V extends @Nullable Object> Function | |
| public static <K extends @Nullable Object, V extends @Nullable Object> Function | |
| public static <T extends @Nullable Object> Function | forPredicate(Predicate<T> predicate)
Creates a function that returns the same boolean output as the given predicate for all inputs. |
| public static <F extends @Nullable Object, T extends @Nullable Object> Function | forSupplier(Supplier<T> supplier)
Returns a function that ignores its input and returns the result of |
| public static <E extends @Nullable Object> Function | |
| public static Function | toStringFunction()
A function equivalent to the method reference |