(Object key)
| 3976 | } |
| 3977 | |
| 3978 | @Nullable |
| 3979 | public V getIfPresent(Object key) { |
| 3980 | int hash = hash(checkNotNull(key)); |
| 3981 | V value = segmentFor(hash).get(key, hash); |
| 3982 | if (value == null) { |
| 3983 | globalStatsCounter.recordMisses(1); |
| 3984 | } else { |
| 3985 | globalStatsCounter.recordHits(1); |
| 3986 | } |
| 3987 | return value; |
| 3988 | } |
| 3989 | |
| 3990 | // Only becomes available in Java 8 when it's on the interface. |
| 3991 | // @Override |
nothing calls this directly
no test coverage detected