Navigating (Searching) Collections
Update: this article has been crossposted to the Transylvania JUG blog.
The Java collections framework includes the concept of NavigableSets / NavigableMaps. The principle behind these interfaces is that taking a SortedSet/SortedMap you can use a subset of it. Some examples:
Given the following set:
@Before
public void ...