1 Oct 2006 15:46
Method
Lars Heuer <heuer <at> semagia.com>
2006-10-01 13:46:55 GMT
2006-10-01 13:46:55 GMT
Hi all,
Now that we have the static method
Method.valueOf(String)
I wonder if it makes sense to make the Method constructors private. I
think it's unlikely that someone wants to create a non-standard
Method.
If the constructors are private we can compare Method instances by
reference which should be a lot faster than the equals(Object) method.
Thoughts?
Best regards,
Lars
--
--
http://www.semagia.com
Best regards,
Jerome
> -----Message d'origine-----
> De : Lars Heuer [mailto:heuer <at> semagia.com]
> Envoyé : mardi 3 octobre 2006 18:43
> À : Jerome Louvel
> Objet : Re: Method
>
> Hi Jerome,
>
> [...]
> > We predefined the standard HTTP and WebDAV methods, but
> nothing in REST or
> > HTTP prevents the user from creating new ones if needed. If
> we think about
> > the mapping of other protocols to the API which may also
> require new
> > methods.
>
> You're absolutly right. Sorry for this not well thought silly
> suggestion. :)
>
> Best regards,
> Lars
> --
>
RSS Feed