Code example for LoadingCache

Methods: getUnchecked

0
  public static Format getFormat( String name )
    { 
    if( name == null || name.isEmpty() )
      return null; 
 
    return cache.getUnchecked( name );
    } 
 
  public static List<Format> resolveFormats( List<String> formats )
    { 
    if( formats == null )
      return Collections.EMPTY_LIST;
 
    List<Format> results = new ArrayList<Format>();
 
    for( String format : formats )
      results.add( getFormat( format ) );
 
    return results;
    } 
Experience pair programming with AI  Get Codota for Java