I work on a Batch with Spring-Batch. In a processor I have to handle a DTO with approximately twenty fields.
Functionally, if no field is empty I have nothing to do. So I would like to find out in first place, if no field is empty.
But I don't really want to do an "if" with twenty
DTO.getValue1 != null && DTO.getValue2 != null [...]
I wonder if there will not be a cleaner way to do that ?
thx in advance.