Code example for LoadingCache

Methods: getUnchecked

0
        if (!program.getSeasonId().isPresent()) {
            episode.setSeriesNumber(null);
            return; 
        } 
         
        Optional<Integer> seasonNumber = seasonNumberCache.getUnchecked(program.getSeasonId().get());
        if (seasonNumber.isPresent()) {
            episode.setSeriesNumber(seasonNumber.get());
        } 
    } 
     
     
    private void setBrandRef(Episode episode, RoviProgramLine program) {
        if (!program.getSeriesId().isPresent()) {
            episode.setParentRef(null);
            return; 
        } 
 
        String seriesCanonicalUri = canonicalUriForProgram(program.getSeriesId().get());
        episode.setParentRef(new ParentRef(seriesCanonicalUri));
Experience pair programming with AI  Get Codota for Java