Java Videos

JetBrains Technology Day for Java – Do It Yourself: Collections

On the 10th July 2020, JetBrains hosted a Technology Day for Java. We had 10 presentations and the videos for them are available here. Over the coming weeks, in no particular order, we’d like to share with you extra resources that our speakers kindly provided and any links to further reading or code samples.

We hosted Nikhil Nanivadekar talking about collections. Collections are among the basic building blocks for writing code. Frequently used collections, such as List, Set, and Map, are designed to serve a basic fundamental purpose, but sometimes these collections are not enough, and developers will want to extend them to add new functionality.

In this hands-on demo, Nikhil extended the Map data structure to create two new collections called a bag (MultiSet) and a multimap (MultiValuedMap) and explained the basics of creating a new collection, adding new APIs, the salient aspects of the new collection, and the various knobs and controls required to make it safe and usable.

We loved how Nikhil started at the beginning with his presentation and proceeded to take us through it in real time. Nikhil live-coded using IntelliJ IDEA and used Test Driven Development (TDD) to create new collections. You might even pick up an IntelliJ IDEA trick or two while watching Nikhil code! Nikhil asked us to mention that Eclipse Collections has nothing to do with Eclipse IDE and he writes code for Eclipse Collections in IntelliJ IDEA.

Code samples
All the code from the session is available here:

Eclipse Collections information
Further information about Eclipse Collections is available here:

Further Reading
These are additional posts provided by Nikhil if you’re interested in learning more:

What our audience thought of Nikhil’s demo

image description