I have found these various “singleton” methods to be useful for passing a single value to an API that requires a collection of that value. Of course, this works best when the code processing the ...
One of the nasty little traps a Java developer can run into occurs when Collection.contains(Object) is not used with appropriate understanding. I demonstrate this potential trap in this post. This is ...
The Java Platform provides the most commonly used data structures in the form of the Collections Framework, and it provides a rich API to operate on them. In this first article in a two-part series, I ...
I'm working with a code base that currently uses both collections4 and guava (and some LambdaJ), and I'm thinking of making a strong push towards eliminating one or the other. A bunch of stuff I've ...