SOURCE - the type of the object used to provide the valueTARGET - the type of the provided value@FunctionalInterface public interface ValueProvider<SOURCE,TARGET> extends SerializableFunction<SOURCE,TARGET>
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.
| Modifier and Type | Method and Description | 
|---|---|
TARGET | 
apply(SOURCE source)
Provides a value from the given source object. 
 | 
static <T> ValueProvider<T,T> | 
identity()
Returns a value provider that always returns its input argument. 
 | 
static <T> ValueProvider<T,T> identity()
Copyright © 2019. All rights reserved.