public void addSymbol(SmiSymbol symbol) { m_symbols.add(symbol); m_symbolMap.put(symbol.getId(), symbol); }
private <T extends SmiSymbol> void put(Map<String, T> map, Class<T> clazz, SmiSymbol symbol) { if (clazz.isInstance(symbol)) { map.put(symbol.getId(), clazz.cast(symbol)); } }