com.vaadin.flow.function.
Interface ValueProvider<SOURCE,TARGET>
Type Parameters:
SOURCE
- the type of the object used to provide the value
TARGET
- the type of the provided value
All Superinterfaces:
Function<SOURCE,
, Serializable
, SerializableFunction<SOURCE,
All Known Subinterfaces:
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 for providing values from a given source.
For example this interface can be implemented to simply extract a value with a getter, or to create a composite value based on the fields of the source object.
Since:
1.0.
Author:
Vaadin Ltd
-
Method Summary
Modifier and TypeMethodDescriptionProvides a value from the given source object.
static <T> ValueProvider<T,
T> identity()
Returns a value provider that always returns its input argument.
-
Method Details
-
identity
Returns a value provider 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
-
apply
Provides a value from the given source object.
-