lv.gotika.engine.util
Class MapExt
java.lang.Object
lv.gotika.engine.util.MapExt
public final class MapExt
- extends Object
Class provides specific operations for the in-memory dictionary, used by GothicAnalyzer.
MapExt
public MapExt()
put
public static Map<String,ArrayList<Pair<String,String>>> put(Map<String,ArrayList<Pair<String,String>>> map,
String key,
Pair<String,String> value,
boolean duplicate)
- Associates the specified value with the specified key in the given map.
If the map already contains the key, the new value is added to the list
of values for this key.
- Parameters:
map - a map to deal with.key - key with which the specified value is to be associated.value - value to be associated with the specified key.duplicate - if
true, adds all the different word-source pairs to the list;
otherwise only one reference per word is stored.
- Returns:
- the resulting map (the same object).