Code example for HashMap

Methods: clear

0
	} 
     
    @Override 
    protected synchronized void clearAddOnList() { 
    	super.clearAddOnList(); 
    	mBuildersByLocale.clear();
    } 
     
    @Override 
    protected void buildOtherDataBasedOnNewAddOns( 
    		ArrayList<DictionaryAddOnAndBuilder> newAddOns) {
    	super.buildOtherDataBasedOnNewAddOns(newAddOns);
    	for(DictionaryAddOnAndBuilder addOn : newAddOns)
    		mBuildersByLocale.put(addOn.getLanguage(), addOn);
    } 
     
    public synchronized DictionaryAddOnAndBuilder getAddOnByLocale(String locale, Context askContext) {
    	if (mBuildersByLocale.size() == 0)
    		loadAddOns(askContext);
    	 
    	return mBuildersByLocale.get(locale);