]> gitweb.fperrin.net Git - Dictionary.git/blob - src/com/hughes/android/dictionary/engine/TokenRow.java
go
[Dictionary.git] / src / com / hughes / android / dictionary / engine / TokenRow.java
1 package com.hughes.android.dictionary.engine;
2
3 import java.io.IOException;
4 import java.io.RandomAccessFile;
5
6 public class TokenRow extends RowWithIndex {
7   
8   TokenRow(final RandomAccessFile raf, final int thisRowIndex, final Index index) throws IOException {
9     super(raf, thisRowIndex, index);
10   }
11
12   @Override
13   public TokenRow getTokenRow(final boolean search) {
14     return this;
15   }
16
17   @Override
18   public void setTokenRow(TokenRow tokenRow) {
19     throw new RuntimeException("Shouldn't be setting TokenRow!");
20   }
21   
22   public String getToken() {
23     return index.sortedIndexEntries.get(referenceIndex).token;
24   }
25
26
27 }