示例#1
0
 public void addSymbol(SmiSymbol symbol) {
   m_symbols.add(symbol);
   m_symbolMap.put(symbol.getId(), symbol);
 }
示例#2
0
 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));
   }
 }