The first <W> let's the compiler know that the second <W> is a generic type and not a reference to some class named W. It's just syntax.
On Thu, Jul 28, 2011 at 10:48 AM, Niranjan Rao <nhr...@gmail.com> wrote: > Ok, I admit it - I don't understand this function at all defined in > IComponentInheritedModel > > public <W> IWrapModel<W> wrapOnInheritance(Component component) > > I don't understand meaning of <W> and IWrapModel<W>. I know generics > generally, but this syntax has been baffling me. Based on what eclipse is > trying to do, it seems like it will return IWrapModel<W>, but then what does > first <W> do? I tried some google searches, but could not find the answer. > > Thanks, > > Niranjan > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > users-unsubscribe@wicket.**apache.org<users-unsubscr...@wicket.apache.org> > For additional commands, e-mail: users-h...@wicket.apache.org > >