@SuppressWarnings("IfMayBeConditional") private Map<K,V> interceptGet(@Nullable Collection<? extends K> keys,Map<K,V> map){
  if (F.isEmpty(keys))   return map;
  CacheInterceptor<K,V> interceptor=cacheCfg.getInterceptor();
  assert interceptor != null;
  Map<K,V> res=U.newHashMap(keys.size());
  for (  Map.Entry<K,V> e : map.entrySet()) {
    V val=interceptor.onGet(e.getKey(),e.getValue());
    if (val != null)     res.put(e.getKey(),val);
  }
  if (map.size() != keys.size()) {
    for (    K key : keys) {
      if (key != null) {
        if (!map.containsKey(key)) {
          V val=interceptor.onGet(key,null);
          if (val != null)           res.put(key,val);
        }
      }
    }
  }
  return res;
}

@ SuppressWarnings ( "IfMayBeConditional" ) private Map < K , V > interceptGet ( @ Nullable Collection < ? extends K > keys , Map < K , V > map ) { if ( F . isEmpty ( keys ) ) return map ; CacheInterceptor < K , V > interceptor = cacheCfg . getInterceptor ( ) ; assert interceptor != null ; Map < K , V > res = U . newHashMap ( keys . size ( ) ) ; for ( Map . Entry < K , V > e : map . entrySet ( ) ) { V val = interceptor . onGet ( e . getKey ( ) , e . getValue ( ) ) ; if ( val != null ) res . put ( e . getKey ( ) , val ) ; } if ( map . size ( ) != keys . size ( ) ) { for ( K key : keys ) { if ( key != null ) { if ( ! map . containsKey ( key ) ) { V val = interceptor . onGet ( key , null ) ; if ( val != null ) res . put ( key , val ) ; } } } } return res ; }
applies cache interceptor on result of ' get ' operation .
