* Returns the current item, moves to the next one.
()
| 69 | * Returns the current item, moves to the next one. |
| 70 | */ |
| 71 | next() { |
| 72 | const result = this.currCell_.data[this.currCellPos_++]; |
| 73 | if (this.currCellPos_ >= this.currCell_.data.length) { |
| 74 | this.currCell_ = this.currCell_.next; |
| 75 | this.currCellPos_ = 0; |
| 76 | } |
| 77 | return result; |
| 78 | } |
| 79 | } |
| 80 | |
| 81 |