Code example for ConcurrentMap

Methods: clear

0
      methodsWithAnnotationCache.putIfAbsent(key, annotated);
      return annotated;
   } 
 
   public void stop() { 
      methodsWithAnnotationCache.clear();
   } 
 
   private static class ClassClassKey { 
      private final Class type;
      private final Class otherType;
 
      public ClassClassKey(Class type, Class annotationType) {
         this.type = type;
         this.otherType = annotationType;
      } 
 
      @Override 
      public boolean equals(Object o) {
         if (this == o) return true;
         if (o == null || getClass() != o.getClass()) return false;