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 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
:
: 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 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: This only applies to serilizable object, right?
: \【 在 coconut (coconut) 的大作中提到: 】
相关阅读
USCIS不批准我的H1B申请, 求助hibernate的教材都好烂澳洲真是好地方,这样的职位都有10万刀多线程的一个基础问题佛渡有缘人[新版申请] 移动设备开发(MobileDev)Amazon.com is hiring in Seattle WA- Software Engineers/Senior Software Engineersdemo差不多可以了 (转载)请问JDBC连SQL server的connect reset问题如何解决? (转载)C#和JAVA真象全球码农向CCTV春晚宣战?Position: JAVA Developer如何在网站上运行系统命令java perf 书java ,wait ,notify notifyalljava.security.KeyStorespring questionAmex Gold Premier信用卡送1000刀 Match 75K Bonus我现在把demo制作过程给写上去了 (转载)第一份工作,C#还是Java区别大吗?