public V getCurrentValue ( final K key ) { V value = cacheMap . get ( key ) ; LOG . debug ( "Value for '{}' {} in cache" , key , ( value == null ? "not " : "" ) ) ; if ( value != null && ! value . isCurrent ( key ) ) { // value is not current; remove it and return null remove ( key ) ; return null ; } return value ; }
Returns the value to which the specified key is mapped or null if 1 ) the value is not current or 2 ) this cache contains no mapping for the key .