Interface ValueFunction<T extends @Nullable Object>
- 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 ValueFunction<T extends @Nullable Object>
extends Function<Escaper,T>
Represents a value function to return arbitrary values that can be escaped before returning the actual value. Can be
used with the criteria API for deferred value retrieval.
- Since:
- 2.0
- Author:
- Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionProduces a value by considering the givenEscaper.default <R> ValueFunction<R> Return a new ValueFunction applying the given mappingFunction.toSupplier(Escaper escaper)
-
Method Details
-
apply
-
toSupplier
-
map
Return a new ValueFunction applying the given mappingFunction. The mapping function is applied after applyingEscaper.- Type Parameters:
R- the type of the value returned from the mapping function.- Parameters:
mapper- the mapping function to apply to the value.- Returns:
- a new ValueFunction.
- Since:
- 3.2
-