Add emptyDefaultForCollections options
krzyk opened this issue · comments
I think many people would like to have emptyDefaultForCollections
, where instead of nulls builder would set following instances in the record built:
- List -> List.of()
- Set -> Set.of()
- Map -> Map.of()
- Collection -> Set.of() or List.of()
Duplicate of #56
OK - I guess I misunderstood. You're staying if someone passes in a null to the builder then, e.g., List.of()
is used instead of null? I'm not sure how I feel about that. I think that would be unexpected.
@Randgalt thank you