News

Using generics with objects of any type We can declare a generic type in any class we create. It doesn’t need to be a collection type. In the following code example, we declare the generic type ...
In part 1 of GS Collections by Example, I demonstrated several different ways to filter a collection in GS Collections using select and selectWith. In order to call select, we passed in a ...
Remove Java List duplicates through code The first two examples to solve this deduping problem use specialized Java components and APIs. However, it’s a fun exercise to just use the standard loop ...
Donald Raab, creator of GS Collections, open sourced by Goldman Sachs in 2012, reveals the power of that framework, and how together with Lambda expressions, it sprinkles Java with some of the ...