Code example for LoadingCache

Methods: getUnchecked

0
  public static Protocol getProtocol( String name )
    { 
    if( name == null || name.isEmpty() )
      return null; 
 
    return cache.getUnchecked( name );
    } 
 
  public static List<Protocol> resolveProtocols( List<String> protocols )
    { 
    if( protocols == null )
      return Collections.EMPTY_LIST;
 
    List<Protocol> results = new ArrayList<Protocol>();
 
    for( String protocol : protocols )
      results.add( getProtocol( protocol ) );
 
    return results;
    } 
Connect your IDE to all the code out there  Get Codota for Java