You're right, get(name, index)/set(name, index) could not apply to
the Collection interface directly because the order is not guaranteed.
But this means that Collection/Set are not treated by the current API
in a neat way.
Instead of
dynabean.set(name, ((Collection) dynabean.get(name)).add(valu
I'd like to add some remarks/questions:
- in fact, the javadoc for the method DynaBean#get(String name) says
"Return the value of a simple property with the specified name" and
I though it was not allowed to call it on an indexed/mapped property
without throwing an IllegalArgumentException
- inde