(Object key, int hash)
| 2869 | } |
| 2870 | |
| 2871 | boolean containsKey(Object key, int hash) { |
| 2872 | try { |
| 2873 | if (count != 0) { // read-volatile |
| 2874 | long now = map.ticker.read(); |
| 2875 | ReferenceEntry<K, V> e = getLiveEntry(key, hash, now); |
| 2876 | if (e == null) { |
| 2877 | return false; |
| 2878 | } |
| 2879 | return e.getValueReference().get() != null; |
| 2880 | } |
| 2881 | return false; |
| 2882 | } finally { |
| 2883 | postReadCleanup(); |
| 2884 | } |
| 2885 | } |
| 2886 | |
| 2887 | /** |
| 2888 | * This method is a convenience for testing. Code should call {@link LocalCache#containsValue} |
nothing calls this directly
no test coverage detected