I know what generics are for ;) I just wondered how *you* would
benefit from it if Magnolia used them. Content.getChildren() methods,
yes, indeed, are a good example.
On Dec 11, 2008, at 2:03 PM, Bert Leunis wrote:
Hi Gregory,
I think Generics is a major advancement in java. It saves us from
ClassCastExceptions, and when working with whatever implementation of
Collections, as developer you are aware of the type of objects you are
working with.
Take for example the method public Collection
getChildren(Content.ContentFilter filter) in
info.magnolia.cms.core.DefaultContent. What does it exacly return:
Content
objects? ContentNode objects? I am always confused. I makes your
work more
clear, that is my experience.
Regards,
Bert
gregoryjoseph wrote:
Hi Bert,
Thanks for the interest, but I am curious: how/why do you need this ?
-g
--
View this message in context:
http://www.nabble.com/When-will-Magnolia-implement-Generics--tp20910713p20955059.html
Sent from the Magnolia - User mailing list archive at Nabble.com.
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
----------------------------------------------------------------