com.vaadin.server.
Interface SerializableFunction<T,R>
-
Type Parameters:
T
- the type of the input to the functionR
- the type of the result of the functionAll Superinterfaces:
Function<T,R>
,Serializable
All Known Subinterfaces:
ComboBox.NewItemProvider<T>
,DescriptionGenerator<T>
,DescriptionGenerator<T>
,DetailsGenerator<T>
,ErrorMessageProvider
,IconGenerator<T>
,ItemCaptionGenerator<T>
,SortOrderProvider
,StyleGenerator<T>
,ValueProvider<SOURCE,TARGET>
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.
@FunctionalInterface public interface SerializableFunction<T,R> extends Function<T,R>, Serializable
A
Function
that is alsoSerializable
.Since:
8.0
Author:
Vaadin Ltd
See Also:
-
-
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 functionReturns:
a function that always returns its input argument
-
-