question: public synchronized List < K > keys ( boolean cold , boolean nonResident ) { ArrayList < K > keys = new ArrayList < K > ( ) ; for ( Segment < K , V > s : segments ) { keys . addAll ( s . keys ( cold , nonResident ) ) ; } return keys ; }
target:  Get the list of keys. This method allows to read the internal state of the cache.