Hi,
>>> For the MultivaluedMap it seems useful to me to add:
>>> • public <A> A getFirst(K key, Class<A> convertTo)
>>> • public <A> A getFirst(K key, Class<A> convertTo, A defaultValue)
>>> • public <A> A getFirst(K key, A defaultValue); // if the
>>> defaultValue is directly the class to convert to (e.g. no subclass)
>>> it would work without the class parameter, I think.
>>> • public <A> List<A> get(K key, Class<A> convertTo)
>> We had this kind of generic method in our initial sketch of the API
>> but we removed them - I can't recall why now - Paul ?
> I don't fully recall. Such methods are still in the Jersey
> implementation. Perhaps we removed them from the iface for two reasons:
>
> - it added some complexity and we wanted to keep things simple.
IMO the main place for simplicity is the use by application developers
and not the implementation of the API.
Stephan