private static < K , V > List < V > aggregateCacheValues ( Map < K , CacheValue < V > > map ) { List < V > values = new ArrayList <> ( map . size ( ) ) ; for ( Map . Entry < K , CacheValue < V > > entry : map . entrySet ( ) ) { values . add ( entry . getValue ( ) . getValue ( ) ) ; } return values ; }
Extracts all the cached values in a map .