Package com.vaadin.flow.function
Interface SerializableFunction<T,R>
-
- Type Parameters:
T- the type of the input to the functionR- the type of the result of the function
- All Superinterfaces:
Function<T,R>,Serializable
- All Known Subinterfaces:
ErrorMessageProvider,IdentifierProvider<T>,ItemLabelGenerator<T>,PushConnectionFactory,SortOrderProvider,ValueProvider<SOURCE,TARGET>
- All Known Implementing Classes:
WebComponentExporterTagExtractor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SerializableFunction<T,R> extends Function<T,R>, Serializable
AFunctionthat is alsoSerializable.- Since:
- 1.0
- Author:
- Vaadin Ltd
-
-
Method Detail
-
identity
static <T> SerializableFunction<T,T> identity()
Returns a function that always returns its input argument.- Type Parameters:
T- the type of the input and output objects to the function- Returns:
- a function that always returns its input argument
-
-