It would be nice to have support of Maps
aliubimov opened this issue · 3 comments
aliubimov commented
It would be nice to have support of populating maps as well. I am not sure what API should be for this.
For lists "having" is perfect, may be something like
aPerson.havingDetails("age", 25)
where person has property
private Map<String, Integer> details;
davidmarquis commented
Yes that could be possible. Have you tried to give this a shot and submit a pull request?
aliubimov commented
I didn't have a chance to create pull request. Let me work out this.
davidmarquis commented
After giving this further thoughts, you'd be better off using a Map builder for this. You could create your own implementation of a Map builder quickly.
My latest commit (b033243) introduces a MapBuilder
and it will be available in the next release. If you need it, let me know!