On Thu, Oct 7, 2010 at 9:20 AM, Florent Guillaume <[email protected]> wrote: > I don't think I got comments on this earlier proposal I made: > > I don't like this part of the CmisObject API and find it hard to use: > <T> T getPropertyValue(String id); > <T> List<T> getPropertyMultivalue(String id); > > I propose to change it to: > <T> T getPropertyValue(String id); > > Which would returns a single value for a single-valued property, and a > List for a multi-valued property. If the client knew which of the two > methods to call, then it knows if it expects a List or not so it > doesn't change expressivity.
Forcing all code reading multi-valued properties to cast to List<T>? -1. -- Chris Hubick mailto:[email protected] http://www.hubick.com/chris/
