1 package com.hughes.android.dictionary.engine;
3 import java.io.IOException;
4 import java.io.RandomAccessFile;
7 import com.hughes.util.raf.RAFSerializable;
8 import com.hughes.util.raf.RAFSerializer;
10 public class PairEntry extends Entry implements RAFSerializable<PairEntry> {
12 public PairEntry(final RandomAccessFile raf) {
15 public void write(RandomAccessFile raf) throws IOException {
18 static final RAFSerializer<PairEntry> SERIALIZER = new RAFSerializer<PairEntry>() {
20 public PairEntry read(RandomAccessFile raf) throws IOException {
21 return new PairEntry(raf);
25 public void write(RandomAccessFile raf, PairEntry t) throws IOException {
32 List<String> getMainTokens() {
37 List<String> getOtherTokens() {
44 public static class Row extends RowBase {
46 Row(final RandomAccessFile raf, final int thisRowIndex,
47 final Index index) throws IOException {
48 super(raf, thisRowIndex, index);
51 public PairEntry getEntry() {
52 return index.dict.pairEntries.get(referenceIndex);
56 public Object draw(String searchText) {
57 // TODO Auto-generated method stub