| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| TextSearchResultsBase |
|
| 1.6;1.6 |
| 1 | package org.paneris.bibliomania.fti; | |
| 2 | ||
| 3 | 0 | abstract class TextSearchResultsBase implements TextSearchResults { |
| 4 | ||
| 5 | public abstract void init(); | |
| 6 | ||
| 7 | public abstract void skipToNextHit(); | |
| 8 | ||
| 9 | public void skipToWordIndex(int wordIndex) { | |
| 10 | for (;;) { | |
| 11 | 0 | int cwi = currentWordIndex(); |
| 12 | 0 | if (cwi != -1 && cwi < wordIndex) |
| 13 | 0 | skipToNextHit(); |
| 14 | else | |
| 15 | break; | |
| 16 | 0 | } |
| 17 | 0 | } |
| 18 | ||
| 19 | public abstract int currentWordIndex(); | |
| 20 | ||
| 21 | public abstract int currentOffset(); | |
| 22 | } |