@Test public void testRemove() { assertFalse(set.remove(null)); assertEquals(1, map.size()); assertEquals(1, set.size()); assertFalse(set.remove(new SimpleImmutableEntry<>(null, VALUE))); assertEquals(1, map.size()); assertEquals(1, set.size()); assertFalse(set.remove(new SimpleImmutableEntry<>(KEY, null))); assertEquals(1, map.size()); assertEquals(1, set.size()); assertFalse(set.remove(new SimpleImmutableEntry<>(KEY, KEY))); assertEquals(1, map.size()); assertEquals(1, set.size()); assertTrue(set.remove(new SimpleImmutableEntry<>(KEY, VALUE))); assertTrue(map.isEmpty()); }
@Override @SuppressWarnings("checkstyle:parameterName") public boolean remove(final Object o) { if (!(o instanceof Entry)) { return false; } final Entry<?, ?> e = (Entry<?, ?>) o; final Object key = e.getKey(); if (key == null) { return false; } final Object value = e.getValue(); if (value == null) { return false; } return map().remove(key, value); }
MutableEntrySet extends AbstractEntrySet<K, V> { @Override @SuppressWarnings("checkstyle:parameterName") public boolean remove(final Object o) { if (!(o instanceof Entry)) { return false; } final Entry<?, ?> e = (Entry<?, ?>) o; final Object key = e.getKey(); if (key == null) { return false; } final Object value = e.getValue(); if (value == null) { return false; } return map().remove(key, value); } }
MutableEntrySet extends AbstractEntrySet<K, V> { @Override @SuppressWarnings("checkstyle:parameterName") public boolean remove(final Object o) { if (!(o instanceof Entry)) { return false; } final Entry<?, ?> e = (Entry<?, ?>) o; final Object key = e.getKey(); if (key == null) { return false; } final Object value = e.getValue(); if (value == null) { return false; } return map().remove(key, value); } MutableEntrySet(final TrieMap<K, V> map); }
MutableEntrySet extends AbstractEntrySet<K, V> { @Override @SuppressWarnings("checkstyle:parameterName") public boolean remove(final Object o) { if (!(o instanceof Entry)) { return false; } final Entry<?, ?> e = (Entry<?, ?>) o; final Object key = e.getKey(); if (key == null) { return false; } final Object value = e.getValue(); if (value == null) { return false; } return map().remove(key, value); } MutableEntrySet(final TrieMap<K, V> map); @Override void clear(); @Override Iterator<Entry<K, V>> iterator(); @Override @SuppressWarnings("checkstyle:parameterName") boolean remove(final Object o); }
MutableEntrySet extends AbstractEntrySet<K, V> { @Override @SuppressWarnings("checkstyle:parameterName") public boolean remove(final Object o) { if (!(o instanceof Entry)) { return false; } final Entry<?, ?> e = (Entry<?, ?>) o; final Object key = e.getKey(); if (key == null) { return false; } final Object value = e.getValue(); if (value == null) { return false; } return map().remove(key, value); } MutableEntrySet(final TrieMap<K, V> map); @Override void clear(); @Override Iterator<Entry<K, V>> iterator(); @Override @SuppressWarnings("checkstyle:parameterName") boolean remove(final Object o);  }