Collections
-
Core Java
Selecting your Collections library
Is this really something you should bother? Is there something fundamentally wrong with java.util.ArrayList and java.util.HashMap? For most of the…
Read More » -
Core Java
Type-safe Empty Collections in Java
I have blogged before on the utility of the Java Collections class and have specifically blogged on Using Collections Methods…
Read More » -
Core Java
Java: Choosing the right Collection
Here is a quick guide for selecting the proper implementation of a Set , List , or Map in your application. The best general purpose or…
Read More » -
Core Java
Java 7: HashMap vs ConcurrentHashMap
As you may have seen from my past performance related articles and HashMap case studies, Java thread safety problems can…
Read More » - Core Java
-
Core Java
Array, list, set, map, tuple, record literals in Java
Occasionally, when I’m thrilled by the power and expressiveness of JavaScript, I find myself missing one or two features in…
Read More » -
Core Java
Common and Unique Elements In Multiple Collections
This week, we’ll take a break from higher level problems and technology posts to deal with just a little code…
Read More » -
Enterprise Java
Avoid Lazy JPA Collections
Hibernate (and actually JPA) has collection mappings: @OneToMany, @ManyToMany, @ElementCollection. All of these are by default lazy. This means the…
Read More » -
Core Java
Java Best Practices – Queue battle and the Linked ConcurrentHashMap
Continuing our series of articles concerning proposed practices while working with the Java programming language, we are going to perform…
Read More »