Package com.vaadin.flow.data.provider
Interface IdentifierProvider<T>
- Type Parameters:
T
- the type of the item
- All Superinterfaces:
Function<T,
,Object> Serializable
,SerializableFunction<T,
,Object> ValueProvider<T,
Object>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A callback interface that is used to provide the identifier of an item.
- Since:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> IdentifierProvider<T>
identity()
Returns an identifier provider that always returns its input argument.Methods inherited from interface com.vaadin.flow.function.ValueProvider
apply
-
Method Details
-
identity
Returns an identifier provider 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
-