@ Override public Set < K > keySet ( ) { try { lockAllSegments ( ) ; Set < K > set = new HashSet <> ( ) ; for ( LinkedHashMapSegment < K , V > seg : segments ) { set . addAll ( seg . keySet ( ) ) ; } return set ; } finally { unlockAllSegments ( ) ; } }
Gets the all key in this map .