Tag Archives: toString

Debug小技巧 – 为对象加入一个Object_ID Field

使用Random来作为Field内容, 并重写toString, 便于在debug时分辨出名称相同的对象, 如:
某类: Employee: [ AS实现]:
/**
* Constractor
*/
public function Employee(name_:String = nul

More…

Posted in 软件工程 | Tagged , | Leave a comment

近日Java/Flex 编程小结,Log, Trace, toString, EventListener, weakreference, JDBC,ListCollectionView

1. Flex中的Trace, Java/Flex中的log, 并不能代表其真实行为.
2. 务必牢记重写toString方法
3. Flex: 在跨越幅度较大, 设计Obj较多时, 使用weakreference的 Event Listener
4. 关于weakreference, 相对普通re

More…

Posted in ActionScript, Java | Tagged , , , , , , | Leave a comment