Use Guava ContiguousSet.