Interface ValueFunction<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
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.
-
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
Produces a value by considering the givenEscaper
. -
toSupplier
- Parameters:
escaper
- the escaper to use.- Returns:
- the value factory
-
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
-