I have a POJO which has 10-15 fields(can be primitive,Custom Object or String). I want to concat all the NonNull fields in a String.
POJO
NonNull
Is there any clean way to do without using 10-15 if statements.
if statements
Aucun commentaire:
Enregistrer un commentaire