ListIterator in Java with examples
A ListIterator in Java is an Iterator that allows us to traverse the list in either direction, modify the list during iteration, and obtain the iterator's current position in the list.
Monthly Archives: March 2020
A ListIterator in Java is an Iterator that allows us to traverse the list in either direction, modify the list during iteration, and obtain the iterator's current position in the list.
Mediator Design Pattern defines an object that encapsulates how a set of objects interact and keeps the objects from referring to each other explicitly.
The BiMap in Google Guava is a bidirectional map that preserves the uniqueness of values and keys. This allows us to lookup by value in the map too.
The Memento Design Pattern allows to capture and externalize an object’s internal state so that the object can be restored later without violating encapsulation
Introduction In the last post, I wrote about the Gang of Four (GoF) Builder Design Pattern. In this post, we will look at the builder pattern from the Effective Java…