m*t
3 楼
BTW, it just occured to me that if you don't care about the color
of the object, then a regular office copier might work very well...
【在 m******t 的大作中提到】
:
: I can't think of any other generic way except of using reflection
: to traverse the member variables. But that's pretty hacky, and
: slow as well ...
r*u
7 楼
This only applies to serilizable object, right?
\【 在 coconut (coconut) 的大作中提到: 】
\【 在 coconut (coconut) 的大作中提到: 】
r*s
8 楼
first, it depends on what "copy" means here. does your "copy" here mean
creating another object without calling its constructor?
generally, if you don't like the generic Object.clone(), why not
override it? You can provide your own way of "copy" in this way.
【在 r*****u 的大作中提到】
: This only applies to serilizable object, right?
: \【 在 coconut (coconut) 的大作中提到: 】
creating another object without calling its constructor?
generally, if you don't like the generic Object.clone(), why not
override it? You can provide your own way of "copy" in this way.
【在 r*****u 的大作中提到】
: This only applies to serilizable object, right?
: \【 在 coconut (coconut) 的大作中提到: 】
相关阅读
StAX, do you use it?good java xpath parser再请教一个lucene的问题byte[] to int[]弱人来提个问题问一个关于Eclipse IDE 的问题请教:windows xp下面可以装cvsnt么?Applet如何调用Server side Jar?what is Agile development methodology?Simple Question About Eclipse超级初级问题ArrayList问个问题再请教一个lucene的问题面试题,不知道怎么答好java regex pattern questionanyone has experience with ZK?get set初学Java, FormLayout一问Introducting a better way of pattern handlingfree binary file sharing