(Object key)
| 3993 | } |
| 3994 | |
| 3995 | @Nullable |
| 3996 | public V getIfPresent(Object key) { |
| 3997 | int hash = hash(checkNotNull(key)); |
| 3998 | V value = segmentFor(hash).get(key, hash); |
| 3999 | if (value == null) { |
| 4000 | globalStatsCounter.recordMisses(1); |
| 4001 | } else { |
| 4002 | globalStatsCounter.recordHits(1); |
| 4003 | } |
| 4004 | return value; |
| 4005 | } |
| 4006 | |
| 4007 | // Only becomes available in Java 8 when it's on the interface. |
| 4008 | // @Override |
nothing calls this directly
no test coverage detected