- Type Parameters:
T
- the input entity type
MAPPER
- the functional interface used for mapping values
- All Known Subinterfaces:
- EnumField<ENTITY,D,E>, EnumForeignKeyField<ENTITY,D,E,FK>, FieldToBoolean<ENTITY,T>, FieldToByte<ENTITY,T>, FieldToDouble<ENTITY,T>, FieldToEnum<ENTITY,T,E>, FieldToFloat<ENTITY,T>, FieldToInt<ENTITY,T>, FieldToLong<ENTITY,T>, FieldToShort<ENTITY,T>, ToBooleanNullable<T>, ToByteNullable<T>, ToDoubleNullable<T>, ToEnumNullable<T,E>, ToFloatNullable<T>, ToIntNullable<T>, ToLongNullable<T>, ToShortNullable<T>
public interface HasMapIfPresent<T,MAPPER,RESULT extends HasMapIfPresent<T,MAPPER,RESULT>>
Trait for expressions that can be mapped to a new expression of the same type
by supplying a mapping function. If the value is present in the original
expression, then it will be present in the new one as well. If the result of
the original expression is null
, then the new expression will
evaluate to null
also.
- Since:
- 3.1.0
- Author:
- Emil Forslund