I would like to know if there is a little special data structure defined in API.
It should be something like photo watching under Windows system. Dealing with that structure is through 2 methods - next and previous, but if it is the last element and next() is invoked - the first element should be returned. And if it is the first element and previous() is invoked - the last element should be returned. So that's like circle. Is something like this defined in API?
I think that it should be somehing like list. Its ListIterator has good methods but when it gets the last element it doesn't jump to the first one - no circle. Do I have to implement my specific collection?