Hello,

Just wanted to correct a mistake I have made.

Mathieu Lirzin <[email protected]> writes:

> I needed a MultiMap meaning a map which associates a key to a List of
> values not to a scalar.  What is nice is that “MultivaluedMap::put” is
> not destructive, it just appends the new value to the already associated
> ones.

‘MultivaluedMap::put’ is destructive like ‘Map::put’ meaning that it
replaces the previously added values which makes sense since
‘MultivaluedMap’ extends ’Map’ so should have the same semantics.  What
provides the non-destructive semantics is the ‘MultivaluedMap::add’
method.  Sorry for the confusion.

-- 
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761  070D 0ADE E100 9460 4D37

Reply via email to