public class TextEntry extends AbstractEntry implements RAFSerializable<TextEntry> {
- final String text;
+ private final String text;
- public TextEntry(final Dictionary dictionary, final DataInput raf, final int index)
- throws IOException {
+ private TextEntry(final Dictionary dictionary, final DataInput raf, final int index)
+ throws IOException {
super(dictionary, raf, index);
text = raf.readUTF();
- throw new RuntimeException();
+ throw new RuntimeException("TextEntry constructor should be unreachable");
}
@Override
public static class Row extends RowBase {
Row(final DataInput raf, final int thisRowIndex,
- final Index index, int extra) throws IOException {
+ final Index index, int extra) throws IOException {
super(raf, thisRowIndex, index, extra);
}
- public TextEntry getEntry() {
+ TextEntry getEntry() {
return index.dict.textEntries.get(referenceIndex);
}
@Override
public RowMatchType matches(final List<String> searchTokens,
- final Pattern orderedMatchPattern, Transliterator normalizer,
- boolean swapPairEntries) {
+ final Pattern orderedMatchPattern, Transliterator normalizer,
+ boolean swapPairEntries) {
return null;
}
}