@@ -0,0 +1,1030 @@
+package stexfires.core.mapper.fieldvalue;%0A%0Aimport stexfires.core.Field;%0A%0Aimport java.util.Objects;%0Aimport java.util.function.Predicate;%0A%0A/**%0A * @author Mathias Kalb%0A * @since 0.1%0A */%0Apublic class ConditionalFieldValueMapper implements FieldValueMapper %7B%0A%0A    protected final Predicate%3CField%3E condition;%0A    protected final FieldValueMapper trueMapper;%0A    protected final FieldValueMapper falseMapper;%0A%0A    public ConditionalFieldValueMapper(Predicate%3CField%3E condition,%0A                                       FieldValueMapper trueMapper,%0A                                       FieldValueMapper falseMapper) %7B%0A        Objects.requireNonNull(condition);%0A        Objects.requireNonNull(trueMapper);%0A        Objects.requireNonNull(falseMapper);%0A        this.condition = condition;%0A        this.trueMapper = trueMapper;%0A        this.falseMapper = falseMapper;%0A    %7D%0A%0A    @Override%0A    public String mapToValue(Field field) %7B%0A        return condition.test(field) ? trueMapper.mapToValue(field) : falseMapper.mapToValue(field);%0A    %7D%0A%0A%7D%0A

Add ConditionalFieldValueMapper