]> gitweb.fperrin.net Git - Dictionary.git/blob - src/com/hughes/android/dictionary/engine/PairEntry.java
go
[Dictionary.git] / src / com / hughes / android / dictionary / engine / PairEntry.java
1 package com.hughes.android.dictionary.engine;
2
3 import java.io.IOException;
4 import java.io.RandomAccessFile;
5 import java.util.List;
6
7 import com.hughes.util.raf.RAFSerializable;
8 import com.hughes.util.raf.RAFSerializer;
9
10 public class PairEntry extends Entry implements RAFSerializable<PairEntry> {
11   
12   public PairEntry(final RandomAccessFile raf) {
13   }
14   @Override
15   public void write(RandomAccessFile raf) throws IOException {
16   }
17   
18   static final RAFSerializer<PairEntry> SERIALIZER = new RAFSerializer<PairEntry>() {
19     @Override
20     public PairEntry read(RandomAccessFile raf) throws IOException {
21       return new PairEntry(raf);
22     }
23
24     @Override
25     public void write(RandomAccessFile raf, PairEntry t) throws IOException {
26       t.write(raf);
27     }
28   };
29   
30
31   @Override
32   List<String> getMainTokens() {
33     return null;
34   }
35
36   @Override
37   List<String> getOtherTokens() {
38     return null;
39   }
40   
41   
42
43   
44   public static class Row extends RowBase {
45     
46     Row(final RandomAccessFile raf, final int thisRowIndex,
47         final Index index) throws IOException {
48       super(raf, thisRowIndex, index);
49     }
50     
51     public PairEntry getEntry() {
52       return index.dict.pairEntries.get(referenceIndex);
53     }
54     
55     @Override
56     public Object draw(String searchText) {
57       // TODO Auto-generated method stub
58       return null;
59     }
60   }
61
62
63
64 }