Code example for AtomicInteger

Methods: get, getAndIncrement

0
      AtomicInteger count = map.get(text);
      if(count == null) {
         count = new AtomicInteger(0);
         map.put(text, count);
      } 
      count.getAndIncrement();
      System.err.println(count.get() + " " + text);
   } 
    
   public Annotation getAnnotation() {
      showMethodInvocation(); 
      return label.getAnnotation();
   } 
 
   public Contact getContact() { 
      showMethodInvocation(); 
      return label.getContact();
   } 
 
   public Converter getConverter(Context context) throws Exception {
      showMethodInvocation();