(Object key)
| 4029 | } |
| 4030 | |
| 4031 | @Nullable |
| 4032 | public V getIfPresent(Object key) { |
| 4033 | int hash = hash(checkNotNull(key)); |
| 4034 | V value = segmentFor(hash).get(key, hash); |
| 4035 | if (value == null) { |
| 4036 | globalStatsCounter.recordMisses(1); |
| 4037 | } else { |
| 4038 | globalStatsCounter.recordHits(1); |
| 4039 | } |
| 4040 | return value; |
| 4041 | } |
| 4042 | |
| 4043 | // Only becomes available in Java 8 when it's on the interface. |
| 4044 | // @Override |
nothing calls this directly
no test coverage detected