(Collection<?> c)
| 3834 | } |
| 3835 | |
| 3836 | @Override |
| 3837 | public boolean retainAll(Collection<?> c) { |
| 3838 | try { |
| 3839 | return super.retainAll(checkNotNull(c)); |
| 3840 | } catch (UnsupportedOperationException e) { |
| 3841 | Set<K> toRetain = Sets.newHashSet(); |
| 3842 | for (Entry<K, V> entry : map().entrySet()) { |
| 3843 | if (c.contains(entry.getValue())) { |
| 3844 | toRetain.add(entry.getKey()); |
| 3845 | } |
| 3846 | } |
| 3847 | return map().keySet().retainAll(toRetain); |
| 3848 | } |
| 3849 | } |
| 3850 | |
| 3851 | @Override |
| 3852 | public int size() { |
nothing calls this directly
no test coverage detected