Code example for LoadingCache

Methods: get

    if (IMPLICITLY_CACHEABLE.contains(clazz)) {
      return true; 
    try { 
      return CACHEABLE_PREDICATE_CACHE.get(clazz);
    } catch (ExecutionException | UncheckedExecutionException e) {
      throw uncheck(toException(e.getCause()));
  public static class CacheKey<T> { 
    public final TypeToken<T> type;
    public final Predicate<? super T> predicate;
    public CacheKey(TypeToken<T> type, Predicate<? super T> predicate) {
      this.type = type;
      this.predicate = predicate;
Connect your IDE to all the code out there  Get Codota for Java