Code example for LoadingCache

Methods: getUnchecked

0
         if (args.isEmpty()) { 
            if (any(extensions.getUnchecked(""), namespaceOrAliasEquals(namespace, aliases.get(namespace))))
               return input.getResult();
         } else if (args.size() == 1) { 
            String arg0 = checkNotNull(args.get(0), "arg[0] in %s", input).toString();
            if (any(extensions.getUnchecked(arg0), namespaceOrAliasEquals(namespace, aliases.get(namespace))))
               return input.getResult();
         } else { 
            throw new RuntimeException(String.format("expecting zero or one args %s", input));
         } 
         return Optional.absent();
      } else { 
         // No extension annotation, should check whether to return absent 
         return input.getResult();
      } 
   } 
 
   @Override 
   public String toString() {
      return "presentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensionsSet()"; 
   }