davidmarquis/fluent-interface-proxy

It would be nice to have support of Maps

aliubimov opened this issue · 3 comments

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;

Yes that could be possible. Have you tried to give this a shot and submit a pull request?

I didn't have a chance to create pull request. Let me work out this.

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!