Code example for LoadingCache

Methods: get

0
   } 
 
   @Override 
   public T get() { 
      try { 
         return cache.get("FOO").orNull();
      } catch (UncheckedExecutionException e) {
         throw propagate(e.getCause());
      } catch (ExecutionException e) {
         throw propagate(e.getCause());
      } 
   } 
 
   @Override 
   public String toString() {
      return Objects.toStringHelper(this).add("delegate", delegate).add("duration", duration).add("unit", unit)
            .toString();
   } 
 
} 
Experience pair programming with AI  Get Codota for Java