com.vaadin.flow.function.
Interface SerializableFunction<T,R>
Type Parameters:
T
- the type of the input to the function
R
- the type of the result of the function
All Superinterfaces:
Function<T,
, Serializable
All Known Subinterfaces:
CheckboxGroup.ItemHelperGenerator<T>
, ErrorMessageProvider
, IdentifierProvider<T>
, ItemLabelGenerator<T>
, PushConnectionFactory
, SortOrderProvider
, UserIdentitySupplier
, ValueProvider<SOURCE,
All Known Implementing Classes:
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
Static MethodsModifier 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 functionReturns:
a function that always returns its input argument
-