question: public Set < Long > keySet ( ) { HashSet < Long > set = new HashSet < Long > ( ) ; for ( Segment < V > s : segments ) { set . addAll ( s . keySet ( ) ) ; } return set ; }
target:  Get the set of keys for resident entries.