users@jsr311.java.net

Re: some improvement for javax.ws.rs.core.*

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Tue, 29 Apr 2008 08:49:37 +0200

Hi Marc,

you are right, it is not useful to put it in a map, but perhaps in a
(Hash)Set. But I've no problem if this special case is not supported.

best regards
   Stephan
>> • CacheControl:
>> • CacheControl is intended to be changed, so it returned for
>> every internal state the same hashCode. Otherwise it is not possible
>> to find again an object that is already inserted and afterwoods
>> changed from whereever.
> I can't think of a good reason to use an instance of a mutable
> CacheControl as a key in a hash map but, ignoring whether or not its a
> good use case, using a constant value for hashCode would kill hashMap
> performance anyway.