I am looking for a class in scala collections which allows me to traverse to next and previous element of a list of items.

For example:

```
val container = SomeClassFromScala(Int,Double,classOf[String],7)

container.getPreviousItem(Double) => Option[Int]
container.getNextItem(7) => None

```

Is there any class in Scala collections with this api and constant time for getNext/getPrevious.

I can write the code but I wanted to see if there is anything I can use right away.