Goes forward or backwards in the navigation history, according to whether the specified relative index is positive or negative. If the specified index is 0 , this method reloads the current page. @param relativeIndex the index to move to, relative to the current index @return this naviga
(final int relativeIndex)
| 214 | * @throws IOException in case of error |
| 215 | */ |
| 216 | public History go(final int relativeIndex) throws IOException { |
| 217 | final int i = index_ + relativeIndex; |
| 218 | if (i < entries_.size() && i >= 0) { |
| 219 | index_ = i; |
| 220 | goToUrlAtCurrentIndex(); |
| 221 | } |
| 222 | return this; |
| 223 | } |
| 224 | |
| 225 | /** |
| 226 | * {@inheritDoc} |
nothing calls this directly
no test coverage detected