Hi All:

I have cases where I want to use a Set of org.apache.http.NameValuePair
instead of a list of NameValuePair (to track what headers I need to remove
for example.).

But, since NameValuePair  does not specify equals() and hashCode() it feels
like I am using an undocumented feature of the implementation of Basic
NameValuePair.

Adding these two method would tell call sites: Yes, you can use NameValuePair
in a Set, Map, and so on. This assumes that all implementation already
support the two methods... so if a 3rd party does not, the changes are
misleading.

Thought?

Gary

Reply via email to