- 博客(10)
- 收藏
- 关注
The Common Java cookbook 笔记(1)
1.4.1. ProblemYou want to automate the creation of toString( ) methods.1.4.2. SolutionUse the Commons Lang ReflectionToStringBuilder or ToStringBuilder and ToStringBuilder to c...
2009-08-15 14:19:41 119
原创 面向对象的设计原则
收藏一些链接,感觉写得挺不错 面向对象的设计原则一 开放-关闭原则 面向对象的设计原则二-单一职责原则面向对象的设计原则三 - 接口隔离原则面向对象的设计原则四 - 里氏代换原则面向对象的设计原则五 - 依赖倒转原则面向对象设计原则六 - 针对接口编程,而不是针对实现编程 面向对象设计原则七 - 组合优先于继承 ...
2009-08-15 11:03:26 133
原创 Java theory and practice: To mutate or not to mutate?
Summary: Immutable objects have a number of properties thatmake working with them easier, including relaxed synchronizationrequirements and the freedom to share and cache object referenceswit...
2009-08-15 00:32:01 261
原创 Java theory and practice: Building a better HashMap
Summary: ConcurrentHashMap, part of Doug Lea's util.concurrent package, offers a higher degree of concurrency than Hashtable or synchronizedMap. In addition, it manages to avoid l...
2009-08-15 00:27:40 178
原创 Java theory and practice: Concurrent collections classes
Summary: In addition to many other useful concurrency building blocks, Doug Lea's util.concurrent package contains high-performance, thread-safe implementations for workhorse collection types...
2009-08-15 00:23:56 166
原创 Java theory and practice: A brief history of garbage collection
The benefits of garbage collection are indisputable -- increasedreliability, decoupling of memory management from class interfacedesign, and less developer time spent chasing memory management err...
2009-08-15 00:04:34 208
原创 Java theory and practice: Garbage collection and performance
In the early days of Java technology, allocating objects got apretty bad rap. There were lots of articles (including some by thisauthor) advising developers to avoid creating temporary objectsun...
2009-08-14 23:33:44 264
原创 Removing GC Synchronisation
Removing GC SynchronisationAndy C. King ak32@ukc.ac.uk ACM No. 5256805 Computing Laboratory University of Kent Canterbury, Kent, CT2 7NF, UK ...
2009-08-14 23:15:47 260
原创 Tuning Garbage Collection with the 1.4.2 Java[tm] Virtual Machine
Table of Contents1Introduction2Generations2.1Performance Considerations2.2Measurement3Sizing the Generations3.1Total Heap3.2The Yo...
2009-08-14 22:55:25 150
原创 Java theory and practice: Hashing it out --hashCode
Summary: Every Java object has a hashCode() and an equals()method. Many classes override the default implementations of thesemethods to provide a higher degree of semantic comparability betwe...
2009-08-14 22:08:56 126
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人