class FieldToBigDecimalImpl<ENTITY, V>
extends AbstractFieldMapper<ENTITY, V, BigDecimal, ToBigDecimal<ENTITY>, Function<V, BigDecimal>>
implements FieldToBigDecimal<ENTITY, V> {

    public FieldToBigDecimalImpl(ReferenceField<ENTITY, ?, V> field,
                                 Function<V, BigDecimal> mapper) {
        super(field, mapper);
    }

    @Override
    public BigDecimal apply(ENTITY entity) {<FILL_FUNCTION_BODY>}
}

        final V value = field.get(entity);
        if (value == null) return null;
        else return mapper.apply(value);
    
<methods>public ReferenceField<ENTITY,?,V> getField() ,public Function<V,java.math.BigDecimal> getMapper() ,public FieldIsNotNullPredicate<ENTITY,java.math.BigDecimal> isNotNull() ,public FieldIsNullPredicate<ENTITY,java.math.BigDecimal> isNull() <variables>final non-sealed ReferenceField<ENTITY,?,V> field,final non-sealed Function<V,java.math.BigDecimal> mapper