Code example for Cache

Methods: getIfPresent

0
 
        return null; 
    } 
 
    public static String map(CodeDesc codeDesc, String code) {
        CodeDescMapper codeDescMapper = codeDescCache.getIfPresent(codeDesc.getDescLabel());
        if (codeDescMapper != null) return codeDescMapper.map(code);
 
        return null; 
    } 
}