Returns the segment that should be used for a key with the given hash. @param hash the hash code for the key @return the segment
(int hash)
| 1876 | * @return the segment |
| 1877 | */ |
| 1878 | Segment<K, V> segmentFor(int hash) { |
| 1879 | // TODO(fry): Lazily create segments? |
| 1880 | return segments[(hash >>> segmentShift) & segmentMask]; |
| 1881 | } |
| 1882 | |
| 1883 | Segment<K, V> createSegment( |
| 1884 | int initialCapacity, long maxSegmentWeight, StatsCounter statsCounter) { |
no outgoing calls
no test coverage detected