@Test public void testContainsValue() { final EventList<String> source = new BasicEventList<>(); final Map<? extends Comparable, List<String>> eventMap = GlazedLists.syncEventListToMultiMap(source, new FirstLetterFunction()); assertEquals(null, eventMap.get("J")); source.add("James"); assertEquals(1, eventMap.size()); assertTrue(eventMap.containsValue(GlazedListsTests.delimitedStringToList("James"))); source.add("Lemieux"); assertEquals(2, eventMap.size()); assertTrue(eventMap.containsValue(GlazedListsTests.delimitedStringToList("James"))); assertTrue(eventMap.containsValue(GlazedListsTests.delimitedStringToList("Lemieux"))); assertFalse(eventMap.containsValue(GlazedListsTests.delimitedStringToList("Wilson"))); source.addAll(GlazedListsTests.delimitedStringToList("Jesse Wilson")); assertEquals(3, eventMap.size()); assertTrue(eventMap.containsValue(GlazedListsTests.delimitedStringToList("James Jesse"))); assertTrue(eventMap.containsValue(GlazedListsTests.delimitedStringToList("Lemieux"))); assertTrue(eventMap.containsValue(GlazedListsTests.delimitedStringToList("Wilson"))); source.remove("Lemieux"); assertEquals(2, eventMap.size()); assertTrue(eventMap.containsValue(GlazedListsTests.delimitedStringToList("James Jesse"))); assertFalse(eventMap.containsValue(GlazedListsTests.delimitedStringToList("Lemieux"))); assertTrue(eventMap.containsValue(GlazedListsTests.delimitedStringToList("Wilson"))); source.remove("James"); assertEquals(2, eventMap.size()); assertTrue(eventMap.containsValue(GlazedListsTests.delimitedStringToList("Jesse"))); assertFalse(eventMap.containsValue(GlazedListsTests.delimitedStringToList("Lemieux"))); assertTrue(eventMap.containsValue(GlazedListsTests.delimitedStringToList("Wilson"))); source.clear(); assertEquals(0, eventMap.size()); assertFalse(eventMap.containsValue(GlazedListsTests.delimitedStringToList("Jesse"))); assertFalse(eventMap.containsValue(GlazedListsTests.delimitedStringToList("Lemieux"))); assertFalse(eventMap.containsValue(GlazedListsTests.delimitedStringToList("Wilson"))); assertTrue(eventMap.isEmpty()); }
@Override public boolean containsValue(Object value) { return delegate.containsValue(value); }
GroupingListMultiMap implements DisposableMap<K, List<V>>, ListEventListener<List<V>> { @Override public boolean containsValue(Object value) { return delegate.containsValue(value); } }
GroupingListMultiMap implements DisposableMap<K, List<V>>, ListEventListener<List<V>> { @Override public boolean containsValue(Object value) { return delegate.containsValue(value); } GroupingListMultiMap(EventList<V> source, FunctionList.Function<V, ? extends K> keyFunction, Comparator<? super K> keyGrouper); }
GroupingListMultiMap implements DisposableMap<K, List<V>>, ListEventListener<List<V>> { @Override public boolean containsValue(Object value) { return delegate.containsValue(value); } GroupingListMultiMap(EventList<V> source, FunctionList.Function<V, ? extends K> keyFunction, Comparator<? super K> keyGrouper); @Override void dispose(); @Override int size(); @Override boolean isEmpty(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); @Override List<V> get(Object key); @Override List<V> put(K key, List<V> value); @Override void putAll(Map<? extends K, ? extends List<V>> m); @Override void clear(); @Override List<V> remove(Object key); @Override Collection<List<V>> values(); @Override Set<K> keySet(); @Override Set<Entry<K, List<V>>> entrySet(); @Override boolean equals(Object o); @Override int hashCode(); @Override void listChanged(ListEvent<List<V>> listChanges); }
GroupingListMultiMap implements DisposableMap<K, List<V>>, ListEventListener<List<V>> { @Override public boolean containsValue(Object value) { return delegate.containsValue(value); } GroupingListMultiMap(EventList<V> source, FunctionList.Function<V, ? extends K> keyFunction, Comparator<? super K> keyGrouper); @Override void dispose(); @Override int size(); @Override boolean isEmpty(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); @Override List<V> get(Object key); @Override List<V> put(K key, List<V> value); @Override void putAll(Map<? extends K, ? extends List<V>> m); @Override void clear(); @Override List<V> remove(Object key); @Override Collection<List<V>> values(); @Override Set<K> keySet(); @Override Set<Entry<K, List<V>>> entrySet(); @Override boolean equals(Object o); @Override int hashCode(); @Override void listChanged(ListEvent<List<V>> listChanges);  }