Code example for SortedMap

Methods: get, put

0
  static String trim(final String s) {
    return whitespace.matcher(s).replaceAll(" ").trim();
  } 
 
  public void incrementCount(final String string) {
    AtomicInteger counter = counters.get(string);
    if (counter == null) {
      counter = new AtomicInteger();
      counters.put(string, counter);
    } 
    counter.incrementAndGet();
  } 
   
  public void addLinkToCurrentEntry(final String token, final String lang, final EntryTypeName entryTypeName) {
      assert false : token + ", title=" + title;
  } 
 
   
  // ------------------------------------------------------------------------- 
   
  static class AppendAndIndexWikiCallback<T extends AbstractWiktionaryParser> implements WikiTokenizer.Callback {