2.11.06

 

Java Generics and Collections

By myself and my colleague and friend Maurice Nafalin. It's finally out, after considerable effort over the last year. It's just published, and I was pleased to see the O'Reilly stand at OOPSLA sold out.

"A brilliant exposition of generics. By far the best book on the topic, it provides a crystal clear tutorial that starts with the basics and ends leaving the reader with a deep understanding of both the use and design of generics." -- Gilad Bracha, Java Generics Lead, Sun Microsystems

Thanks for the kind words, Gilad!

Comments:
hello,
Sridhar here,

I have a problem in writing a generic method...

Consider the Case;

***********************************

Class Parent{

Child child
primitive datatypes...........

}

Clss Child{

SubChild subChild
primitive datatypes.......

}


Class SubChild{

primitive datatypes.........

}


Class ParentBean{

ChildBean childBean
primitive datatypes(same fields as Parent)
}

Class ChildBean{

SubChildBean subChildBean
primitive datatypes( same fields as Child)
}

Class SubChildBean{

primitive datatypes(same fields as SubChild)
}



now the question is that

I have to write one Generic Method so that, it copies values from ParentBean to Parent
like
parent.merge(parentBean)

in the method definition, i have to take them as object, not an instance of the corresponding entity or the bean

********************

if you find any solution, can you please reply to my personnel Id
sridharas@tarangtech.com

Thanks a lot
 
Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?