(Collection<?> c)
| 3899 | } |
| 3900 | |
| 3901 | @Override |
| 3902 | public boolean retainAll(Collection<?> c) { |
| 3903 | try { |
| 3904 | return super.retainAll(checkNotNull(c)); |
| 3905 | } catch (UnsupportedOperationException e) { |
| 3906 | Set<K> toRetain = Sets.newHashSet(); |
| 3907 | for (Entry<K, V> entry : map().entrySet()) { |
| 3908 | if (c.contains(entry.getValue())) { |
| 3909 | toRetain.add(entry.getKey()); |
| 3910 | } |
| 3911 | } |
| 3912 | return map().keySet().retainAll(toRetain); |
| 3913 | } |
| 3914 | } |
| 3915 | |
| 3916 | @Override |
| 3917 | public int size() { |
nothing calls this directly
no test coverage detected