十二:冗赘类(LAZY CLASS) 即如果一个类的所得不值得其身份,它就应该消失 1:当一个类重构后,自身缩水 2:开发者事前规划某些变化,并添加一个CLASS来应...
基于683个网页-相关网页
...明确的子功能结合,那么或许能够把它们提取出来而形成自己的类(用代码行loc度量工具或生成可视化UML)6.懒惰类 (Lazy Class) 这是与大尺寸类正好相反的情况,懒惰类并不能够充分体现其价值,所以应当与别的适当的类加以合并。
基于6个网页-相关网页
Remove Lazy Class 消除冗余类
Note that class loading can be performed in a lazy manner and therefore some parts of the class loading process may be done on first use of the class rather than at load time.
请注意可以用惰性方式执行类装入,所以类装入过程的某些部分可能在第一次使用类的时候才执行,而不是在装入时执行。
If you want to find out what's going on, open JConsole, click the Classes TAB, and keep a lazy eye on the class count as time goes by.
如果您想要弄清楚发生了什么,打开JConsole,单击Classes选项卡,过一段时间查看一次类计数。
The reason is that Rope represents lazy substrings using a dedicated class, allowing the implementation of charAt to remain simple for regular ropes.
原因是 Rope使用专门的类来表示延迟子串(lazy substring),因此使普通 rope 的 charAt的实现保持简单。
应用推荐