class FieldToByteImpl<ENTITY, V>
extends AbstractFieldMapper<ENTITY, V, Byte, ToByte<ENTITY>, ToByteFunction<V>>
implements FieldToByte<ENTITY, V> {

    public FieldToByteImpl(ReferenceField<ENTITY, ?, V> field,
                           ToByteFunction<V> mapper) {
        super(field, mapper);
    }

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

    @Override
    public byte applyAsByte(ENTITY object) {
        return mapper.applyAsByte(field.get(object));
    }
}

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