Code example for LinkedHashSet

Methods: removeAll

0
    // Font doesn't work: 
    //isoCodeToEnWikiName.put("MY", "Burmese"); 
 
 
    { 
        Set<String> missing = new LinkedHashSet<String>(isoCodeToEnWikiName.keySet());
        missing.removeAll(Language.isoCodeToResources.keySet());
        //System.out.println(missing); 
    } 
    assert Language.isoCodeToResources.keySet().containsAll(isoCodeToEnWikiName.keySet());
  } 
 
  public static final Map<String,Map<String,String>> wikiCodeToIsoCodeToWikiName = new LinkedHashMap<String, Map<String,String>>();
  static { 
    // en 
    wikiCodeToIsoCodeToWikiName.put("en", isoCodeToEnWikiName);
     
    Map<String,String> isoCodeToWikiName;
     
    // egrep -o '\{\{Wortart[^}]+\}\}' dewiktionary-pages-articles.xml | cut -d \| -f3 | sort | uniq -c | sort -nr 
    isoCodeToWikiName = new LinkedHashMap<String, String>();