Resurrect UrlEncodedQueryString (RFE 6306820)?
kennardconsulting
richard at kennardconsulting.com
Thu Mar 26 23:10:25 PDT 2009
Yes. From the JavaDoc for .equals():
---
Compares the specified object with this UrlEncodedQueryString for equality.
Returns true if the given object is also a UrlEncodedQueryString and the two
UrlEncodedQueryStrings have the same parameters. More formally, two
UrlEncodedQueryStrings t1 and t2 represent the same UrlEncodedQueryString if
t1.toString().equals(t2.toString()). This ensures that the equals method
checks the ordering, as well as the existence, of every parameter.
Clients interested only in the existence, not the ordering, of parameters
are recommended to use getMap().equals.
This implementation first checks if the specified object is this
UrlEncodedQueryString; if so it returns true. Then, it checks if the
specified object is a UrlEncodedQueryString whose toString() is identical to
the toString() of this UrlEncodedQueryString; if not, it returns false.
Otherwise, it returns true
---
Regards,
Richard.
--
View this message in context: http://www.nabble.com/Resurrect-UrlEncodedQueryString-%28RFE-6306820%29--tp22735890p22736532.html
Sent from the OpenJDK Networking Development mailing list archive at Nabble.com.
More information about the net-dev
mailing list