]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/engine/Dictionary.java
go
[Dictionary.git] / src / com / hughes / android / dictionary / engine / Dictionary.java
index 8f1db2d40f38db67f400e0a474d03010bccd3dea..861ba4373b511a691f7944f9368240b5d3f815e7 100644 (file)
@@ -1,44 +1,17 @@
 package com.hughes.android.dictionary.engine;
 
-import java.io.IOException;
-import java.io.RandomAccessFile;
 import java.util.List;
 
-import com.hughes.util.raf.RAFSerializable;
 
 public class Dictionary {
   
   // persisted
-  List<PairEntry> pairEntries;
+  final List<PairEntry> pairEntries;
   
   // persisted
-  List<EntrySource> sources;
-
-  // --------------------------------------------------------------------------
+  final List<EntrySource> sources;
   
-  final class Index {
-    // One big list!
-    // Various sub-types.
-    // persisted
-    List<Row> rows;
-    
-    // persisted
-    List<IndexEntry> sortedIndexEntries;
-    
-    Dictionary getDict() {
-      return Dictionary.this;
-    }
-  }
-
-  static final class IndexEntry implements RAFSerializable<IndexEntry> {
-    String token;
-    int startRow;
-    
-    public void write(RandomAccessFile raf) throws IOException {
-      raf.writeUTF(token);
-      raf.write(startRow);
-    }
-  }
+  final List<Index> indices;
 
   
 }
\ No newline at end of file