Method
getOrDefault
(@Nullable Object key, @Nullable V defaultValue)
Source from the content-addressed store, hash-verified
| 4008 | // @Override |
| 4009 | |
| 4010 | @Nullable |
| 4011 | public V getOrDefault(@Nullable Object key, @Nullable V defaultValue) { |
| 4012 | V result = get(key); |
| 4013 | return (result != null) ? result : defaultValue; |
| 4014 | } |
| 4015 | |
| 4016 | V get(K key, CacheLoader<? super K, V> loader) throws ExecutionException { |
| 4017 | int hash = hash(checkNotNull(key)); |
Callers
nothing calls this directly
Tested by
no test coverage detected