Code example for LoadingCache

Methods: get

0
    private <T> Cache<Locale, T> getFormatsCache(String cache)
    { 
 
        try 
        { 
            return (Cache<Locale, T>) formats.get(cache);
        } catch (ExecutionException e)
        { 
            throw new RuntimeException(e);
        } 
 
    } 
 
    private Cache<Locale, String[]> getStringCache(String cache)
    { 
 
        try 
        { 
            return stringCaches.get(cache);
        } catch (ExecutionException e)