()
| 54 | } |
| 55 | |
| 56 | public void next() { |
| 57 | if (pos == start) { |
| 58 | // hash first kmer |
| 59 | NTM64(seq, k, h, ++pos, hVals); |
| 60 | } |
| 61 | else if (pos < max) { |
| 62 | NTM64(seq.charAt(pos), seq.charAt(pos+k), k, h, hVals, kMod64); |
| 63 | ++pos; |
| 64 | } |
| 65 | else { |
| 66 | Arrays.fill(hVals, 0); |
| 67 | hVals = null; |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | public boolean hasNext() { |
| 72 | return pos < max; |
no test coverage detected