@ Override public int get ( String symbol ) { int id = symbolToId . getOrDefault ( symbol , - 1 ) ; if ( id < 0 ) { throw new IllegalArgumentException ( "No symbol exists for key " + symbol ) ; } return id ; }
Returns the id of the symbol or throws an exception if this symbol isnt in the table