`
webdd
  • 浏览: 8993 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
1.4.1. Problem You want to automate the creation of toString( ) methods.1.4.2. Solution Use the Commons Lang ReflectionToStringBuilder or ToStringBuilder and ToStringBuilder to create toString() methods. The following code is an example of a toString( ) method, which uses a r ...
收藏一些链接,感觉写得挺不错   面向对象的设计原则一 开放-关闭原则 面向对象的设计原则二-单一职责原则 面向对象的设计原则三 - 接口隔离原则 面向对象的设计原则四 - 里氏代换原则 面向对象的设计原则五 - 依赖倒转原则 面向对象设计原则六 - 针对接口编程,而不是针对实现编程 面向对象设计原则七 - 组合优先于继承
Summary:   Immutable objects have a number of properties that make working with them easier, including relaxed synchronization requirements and the freedom to share and cache object references without concern for data corruption. While immutability may not necessarily make sense for all classes, ...
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 locking completely for most successful get() operations, which results in excellent throughput in ...
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 List and Map . This month, Brian Goetz shows you how many concurrent programs will benefit fr ...
The benefits of garbage collection are indisputable -- increased reliability, decoupling of memory management from class interface design, and less developer time spent chasing memory management errors. The well-known problems of dangling pointers and memory leaks simply do not occur in Java prog ...
In the early days of Java technology, allocating objects got a pretty bad rap. There were lots of articles (including some by this author) advising developers to avoid creating temporary objects unnecessarily because allocation (and the corresponding garbage-collection overhead) was expensive. Wh ...
Removing GC Synchronisation Andy C. King ak32@ukc.ac.uk ACM No. 5256805 Computing Laboratory University of Kent Canterbury, Kent, CT2 7NF, UK Richard Jones (Advisor) R.E.Jones@ukc.ac.uk <!-- Format Problem and ...
Table of Contents 1 Introduction 2 Generations 2.1 Performance Considerations 2.2 Measurement 3 Sizing the Generations 3.1 Total Heap 3.2 The Young Generation 3.2.1 Young Generation Guarantee 4 Types of Collectors 4.1When to Us ...
Summary:   Every Java object has a hashCode() and an equals() method. Many classes override the default implementations of these methods to provide a higher degree of semantic comparability between object instances. In this installment of Java theory and practice , Java developer Brian Goetz s ...
Global site tag (gtag.js) - Google Analytics