()
| 272 | } |
| 273 | |
| 274 | public Iterator<T> iterator() { |
| 275 | return new GenericIterator() { |
| 276 | @Override |
| 277 | protected int getArrayIndex() { |
| 278 | int result = (currentIndex + startIndex) % dataArray.length; |
| 279 | return result; |
| 280 | } |
| 281 | }; |
| 282 | } |
| 283 | |
| 284 | public Iterator<T> descendingIterator() { |
| 285 | return new GenericIterator() { |
no outgoing calls