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.
A
Function
that is also Serializable
.- Since:
- 1.0
- Author:
- Vaadin Ltd
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> SerializableFunction<T,
T> identity()
Returns a function that always returns its input argument.
-
Method Details
-
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
-