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