@Test public void testGetValueFromIdImpl() { for (int i = 0; i < testData.size(); i += 2) { assertEquals(testData.get(i), shrunkenDict.getValueFromId(originDict.getIdFromValue(testData.get(i)))); } }
protected T getValueFromIdImpl(int id) { if (idToValueMap == null) { idToValueMap = buildIdToValueMap(); } return idToValueMap.get(id); }
ShrunkenDictionary extends Dictionary<T> { protected T getValueFromIdImpl(int id) { if (idToValueMap == null) { idToValueMap = buildIdToValueMap(); } return idToValueMap.get(id); } }
ShrunkenDictionary extends Dictionary<T> { protected T getValueFromIdImpl(int id) { if (idToValueMap == null) { idToValueMap = buildIdToValueMap(); } return idToValueMap.get(id); } ShrunkenDictionary(ValueSerializer<T> valueSerializer);  ShrunkenDictionary(ValueSerializer<T> valueSerializer, int minId, int maxId, int sizeOfId, int sizeOfValue,
            Map<T, Integer> valueToIdMap); }
ShrunkenDictionary extends Dictionary<T> { protected T getValueFromIdImpl(int id) { if (idToValueMap == null) { idToValueMap = buildIdToValueMap(); } return idToValueMap.get(id); } ShrunkenDictionary(ValueSerializer<T> valueSerializer);  ShrunkenDictionary(ValueSerializer<T> valueSerializer, int minId, int maxId, int sizeOfId, int sizeOfValue,
            Map<T, Integer> valueToIdMap); @Override int getMinId(); @Override int getMaxId(); @Override int getSizeOfId(); @Override int getSizeOfValue(); @Override boolean contains(Dictionary<?> another); void dump(PrintStream out); void write(DataOutput out); void readFields(DataInput in); }
ShrunkenDictionary extends Dictionary<T> { protected T getValueFromIdImpl(int id) { if (idToValueMap == null) { idToValueMap = buildIdToValueMap(); } return idToValueMap.get(id); } ShrunkenDictionary(ValueSerializer<T> valueSerializer);  ShrunkenDictionary(ValueSerializer<T> valueSerializer, int minId, int maxId, int sizeOfId, int sizeOfValue,
            Map<T, Integer> valueToIdMap); @Override int getMinId(); @Override int getMaxId(); @Override int getSizeOfId(); @Override int getSizeOfValue(); @Override boolean contains(Dictionary<?> another); void dump(PrintStream out); void write(DataOutput out); void readFields(DataInput in);  }